我试图在DSE cassandra上运行以下命令: -
dse$ bin/dse spark-sql
它出现以下错误: -
2018-05-24 16:59:41 [main] ERROR o.a.s.d.DseSparkSubmitBootstrapper - Failed to start or submit Spark application - see details in the log file(s): /home/aditya/.spark-sql-shell.log
java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxrwxr-x
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:522) ~[hive-exec-1.2.1.spark2.jar:1.2.1.spark2]
at org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver$.main(SparkSQLCLIDriver.scala:114) ~[spark-hive-thriftserver_2.11-2.0.2.16.jar:2.0.2.16]
at org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.main(SparkSQLCLIDriver.scala) ~[spark-hive-thriftserver_2.11-2.0.2.16.jar:2.0.2.16]
我不明白是这个权限问题还是别的,但目录具有所有权限。
谢谢,
答案 0 :(得分:0)
我解决了我的问题。这是因为我没有在分析模式下启动Cassandra所以如果你遇到这样的问题,请确保你已经在分析模式下启动了你的Cassandra -
bin/dse cassandra -k
谢谢,