Ubuntu-安装openfire+spark
在官网下载openfire+spark
开启openfire
cd pakageDir/bin
sudo ./openfire start
运行spark
sudo ./starter
sudo ./Spark
可能会报错
<span style="font-size:18px;">ls: cannot access /home/renke/Software/Spark/lib/windows: No such file or directory </span>
把jre文件夹改为jre.not(反正就是改个名称,不使用自带的jre)
再 sudo ./Spark, 可能会报错
<span style="font-size:18px;">renke@renke-Inspiron-5537:~/Software/Spark$ ./Spark testing JVM in /home/renke/Software/jdk1.7.0_09/jre ... No suitable Java Virtual Machine could be found on your system. The version of the JVM must be at least 1.5 and at most 1.6. </span>
改一下最高版本就行了
sudo gedit Spark
将里面的
<span style="font-size:18px;">test_jvm() { tested_jvm=na test_dir=$1 bin_dir=$test_dir/bin java_exc=$bin_dir/java if [ -z "$test_dir" ] || [ ! -d "$bin_dir" ] || [ ! -f "$java_exc" ] || [ ! -x "$java_exc" ]; then return fi tested_jvm=false read_db_entry || create_db_entry if [ "$ver_major" = "" ]; then return; fi if [ "$ver_major" -lt "1" ]; then return; elif [ "$ver_major" -eq "1" ]; then if [ "$ver_minor" -lt "5" ]; then return; fi fi if [ "$ver_major" = "" ]; then return; fi if [ "$ver_major" -gt "1" ]; then return; elif [ "$ver_major" -eq "1" ]; then if [ "$ver_minor" -gt "8" ]; then return; fi fi app_java_home=$test_dir } </span>
<span style="font-size:18px;">"$ver_minor" -gt</span>值改为8
然后再sudo ./Spark就OK了