I had got this exception many times when i had snapshot from cassandra. i try with different ways but there
Continue readingAuthor: javavogue
How to delete a non-empty directory in Terminal?
rm -rf myfolder It deletes all files and folders contained in the myfolder directory. Add sudo at the beginning of
Continue readingHow do I delete all data in a Cassandra column family ?
We can truncate all rows from cassandra tables using truncate Example: cqlsh: test > TRUNCATE test.users ;
Continue readingHow to Convert Java Timestamp to MySQL timestamp vice versa
How to Insert java time in mysql timestamp java.util.Date date = new Date(); Timestamp timestamp = new Timestamp(date.getTime()); preparedStatement.setTimestamp(1,
Continue readingHow To Install and Use Memcache on Ubuntu
Memcached is a general-purpose distributed memory caching system. It is often used to speed up dynamic database-driven websites by caching
Continue readingHow To Convert Integer To String In Java
public class IntToString { public static void main(String[] args) { int num = 10; // method first String str1 =
Continue readingHow to find all occurrences of string in a string Java
Find all occurrences of string in a string. for this we will use one loop and indexof() method public class
Continue readingHow to delete all elements from TreeMap
import java.util.Map; import java.util.TreeMap; public class TreeMapDeleteAll { public static void main(String[] args) { Map<Integer, String> tm = new TreeMap<Integer,String>();
Continue readingHow to get entry set from TreeMap
import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.TreeMap; public class TreeMapEntrySet { public static void main(String[] args) { Map<Integer, String>
Continue readingHow to get size of TreeMap
import java.util.Map; import java.util.TreeMap; public class TreeMapKeyCount { public static void main(String[] args) { Map<Integer, String> tm = new TreeMap<Integer,String>();
Continue reading