使用ansible-playbook启动tispark显示启动成功
[tidb@tidb1 tidb-ansible-2.1.15]$ ansible-playbook start_spark.yml
PLAY [spark_master] ****************************************************************************************************************************
TASK [start spark master] **********************************************************************************************************************
changed: [192.168.10.201]
PLAY [spark_slaves] ****************************************************************************************************************************
TASK [start spark slave] ***********************************************************************************************************************
changed: [192.168.10.204]
changed: [192.168.10.203]
changed: [192.168.10.202]
PLAY RECAP *************************************************************************************************************************************
192.168.10.201 : ok=1 changed=1 unreachable=0 failed=0
192.168.10.202 : ok=1 changed=1 unreachable=0 failed=0
192.168.10.203 : ok=1 changed=1 unreachable=0 failed=0
192.168.10.204 : ok=1 changed=1 unreachable=0 failed=0
Congrats! All goes well. :-)
查看tispark日志提示:JAVA_HOME is not set
[root@tidb1 logs]# more spark-tidb-org.apache.spark.deploy.master.Master-1-tidb1.out
JAVA_HOME is not set
查看tidb的JAVA_HOME没问题
[tidb@tidb1 tidb-ansible-2.1.15]$ echo $JAVA_HOME
/usr/local/jdk1.8.0_91
[tidb@tidb1 tidb-ansible-2.1.15]$
root的java_home也没问题:
[root@tidb1 logs]# echo $JAVA_HOME
/usr/local/jdk1.8.0_91
[root@tidb1 logs]#
使用root用户启动正常