Use iconv util in Ubuntu:
1 |
iconv -f UTF-8 -t UTF-16 source.txt > dest.txt |
Use iconv util in Ubuntu:
1 |
iconv -f UTF-8 -t UTF-16 source.txt > dest.txt |
Notes how to install and use Aerospike.
Installation steps from here: http://www.aerospike.com Continue reading
Ubuntu 14.04 LTS, HBase 1.2.1, Java 8, Hadoop 2.2.0
Java. How to install: http://dmitrypukhov.pro/install-java8-on-ubuntu/
Hadoop. How to install: http://dmitrypukhov.pro/install-hadoop-on-ubuntu/ Continue reading
Zookeeper installation steps are nice and easy for dev environment.
Using scp command for secure copying file to remote machine:
1 |
scp <file> <user>@<machine>:<path on remote machine> |
Example:
1 |
scp -i ~/.ssh/myKey.pem ~/file1.txt ubuntu@192.168.0.2:"~/file2.txt" |
Filter processes by string pattern (let it be “java” processes):
1 |
ps -eaf | grep java |
Find my process in resulted list and kill by id:
1 |
kill -9 123 |
Kill all processes by “java” pattern:
1 |
kill -9 `ps -eaf | grep java | grep -v grep | awk '{print$2}'` |
Starting Tomcat7 from Eclipse produced an error:
Could not load the Tomcat server configuration at /usr/share/tomcat7/conf. The configuration may be corrupt or incomplete.
Solution:
Tomcat7 split into different folders by default. Eclipse expects Tomcat to be in one folder. To resolve, we create symbolic links in Tomcat home dir.
1 2 3 4 5 6 |
cd /usr/share/tomcat7 sudo ln -s /var/lib/tomcat7/conf conf sudo ln -s /var/log/tomcat7 log sudo ln -s /etc/tomcat7/policy.d/03catalina.policy conf/catalina.policy sudo chmod -R a+rwx /usr/share/tomcat7/conf /etc/init.d/tomcat7 stop |
Now Eclipse should be able to start Tomcat.
Simple steps to run Spark 1.5.2 on Ubuntu 14.04 with Yarn (Hadoop 2.7.1)
Install Hadoop (see http://dmitrypukhov.pro/install-hadoop-on-ubuntu/)
Download pre-build Spark from http://spark.apache.org/downloads.html and unpack, say to /opt/spark/ Continue reading
Enrironment: PGAdmin III, Ubuntu 14.x on different machines.
Symptoms: PGAdmin hangs, window grayed. Sometimes it happens occationally when connecting to DB, more often – when opening table properties or SQL queries window.
Solution: remove PGAdmin queries history file
1 |
rm ~/.pgadmin_histoqueries |
Configuration: Ubuntu 14.04, postgresql 9.3, postgis 2