gpt4 book ai didi

apache-spark - Spark 1.5.1 spark-shell 抛出 RuntimeException

转载 作者:行者123 更新时间:2023-12-04 02:16:58 25 4
gpt4 key购买 nike

我只是想在本地 Windows 8 上启动 spark shell,这是我收到的错误消息:

java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are:
rw-rw-rw-
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:522)
at org.apache.spark.sql.hive.client.ClientWrapper.<init>(ClientWrapper.scala:171)
at org.apache.spark.sql.hive.HiveContext.executionHive$lzycompute(HiveContext.scala:162)
at org.apache.spark.sql.hive.HiveContext.executionHive(HiveContext.scala:160)
at org.apache.spark.sql.hive.HiveContext.<init>(HiveContext.scala:167)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.spark.repl.SparkILoop.createSQLContext(SparkILoop.scala:1028)
at $iwC$$iwC.<init>(<console>:9)
at $iwC.<init>(<console>:18)
at <init>(<console>:20)
at .<init>(<console>:24)
at .<clinit>(<console>)
at .<init>(<console>:7)
at .<clinit>(<console>)
at $print(<console>)

Caused by: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rw-rw-rw-
at org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:612)
at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:554)
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:508)
... 56 more

REPL 在这里,但我不能使用 sqlContext..

有没有人遇到过这个问题?任何答案都会有所帮助,谢谢。

最佳答案

已解决:下载了正确的 Winutils 版本,问题已解决。理想情况下,它应该在本地编译,但如果下载编译版本,请确保它是适用的 32/64 位。我在 Windows 7 64 位、Spark 1.6 上试过,并从 https://www.barik.net/archive/2015/01/19/172716/ 下载了 winutils.exe。它奏效了..!!完整步骤位于:http://letstalkspark.blogspot.com/2016/02/getting-started-with-spark-on-window-64.html

关于apache-spark - Spark 1.5.1 spark-shell 抛出 RuntimeException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33234311/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com