apache-spark - 无法在 SPARK 数据帧上创建临时视图
问题描述
这是示例代码
spark-shell --master yarn
val hive_location = "hive_meta_loc"
val spark =org.apache.spark.sql.SparkSession.builder().appName("WNGDEVICES").config("spark.sql.warehouse.dir", "hive_location").enableHiveSupport().getOrCreate()
val rawdata = spark.sql("SELECT * from <table name>")
rawdata.createOrReplaceTempView("Rawdata")
当我执行此操作时,我收到以下错误
解决方案
推荐阅读
- javafx - 从新添加的窗格中分配控制器中的 FXML 元素 - JavaFX
- php - tesseract-php 包装器在本地主机上运行时出现路径错误
- javascript - 防止在页面刷新时重置倒数计时器 - Django & JS
- reactjs - 如何在反应中的 this.state.forEach 语句中抛出错误
- excel - 在 msgbox 提示中使用 inputbox 的输入
- java - 如何从 .csv 文件中拆分数据集以在 java 中进行训练和测试?
- oracle - 如何在客户端机器上部署 oracle apex 应用程序
- api - 使用相同的 spotify 客户端密码进行协作?
- keyboard - MPLAB 不接受来自键盘的某些字符
- bash - 无法使用 terraform 外部数据解析 JSON