jython安装
1. sudo apt-get install jython
2. 因为我之前已经安装过java,所以这里就直接可以了, 如果没有的可能需要安装java虚拟机,如下;
3. http://www.linuxdiyf.com/linux/16260.html
4. .profile文件最后加入:
#pig path
export PATH=$PATH:/usr/local/hadoop/pig/bin
5. pig -x local 测试OK
elasticsearch安装
1. 官网下载版本: https://www.elastic.co/downloads/elasticsearch
2. tar -zvxf elasticsearch-5.0.0.tar.gz
3. mv elasticsearch-5.0.0 elasticsearch
4. mv elasticsearch /use/local/hadoop
5. 进入elasticsearch目录
6. /bin/elasticsearch
7. 如果出现错误:
Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root.
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:93)
....
则参照文章:
http://blog.csdn.net/longxibendi/article/details/41728355
http://stackoverflow.com/questions/7237536/exception-in-thread-main-java-lang-unsupportedclassversionerror-a-unsupporte
.bashrc里面添加:
JAVA_HOME=/usr/java/jdk1.7.0_72 export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$CLASSPATH PATH=$JAVA_HOME/bin:$PATH
上面的/usr/java/jdk1.7.0_72 根据你自己的情况写进去, 这个路径通过下面的命令来查看:
update-alternatives --config java