创建hive表失败:

报错异常信息:

Operation not allowed: ROW FORMAT DELIMITED is only compatible with 'textfile', not 'orc'(line 1, pos 0) == SQL == create table src_test1111( ^^^ id string comment '序号', name string comment '姓名' )comment '测试表' row format delimited fields terminated by ''stored as orc org.apache.spark.sql.catalyst.parser.ParserUtils$.operationNotAllowed(ParserUtils.scala:39),
org.apache.spark.sql.execution.SparkSqlAstBuilder.org$apache$spark$sql$execution$SparkSqlAstBuilder$$validateRowFormatFileFormat(SparkSqlParser.scala:1256),
org.apache.spark.sql.execution.SparkSqlAstBuilder$$anonfun$visitCreateTable$1.apply(SparkSqlParser.scala:1028),
org.apache.spark.sql.execution.SparkSqlAstBuilder$$anonfun$visitCreateTable$1.apply(SparkSqlParser.scala:990),
org.apache.spark.sql.catalyst.parser.ParserUtils$.withOrigin(ParserUtils.scala:93),
org.apache.spark.sql.execution.SparkSqlAstBuilder.visitCreateTable(SparkSqlParser.scala:990)

原因应该是 spark没有提供orc的delimited操作

看这位大佬的引用,估计是新版本修复了,老版本还是不行

大佬原文及参考:

Spark 创建 hive表报错 ROW FORMAT DELIMITED is only compatible with 'textfile', not 'parquet'_jast-CSDN博客场景:在spark分析数据时,创建hive表失败。提示异常 :19/10/09 10:59:18 INFO execution.SparkSqlParser: Parsing command: CREATE EXTERNAL TABLE IF NOT EXISTSdm_xxx.user_area(biFollowersCount String,city String,creat...https://blog.csdn.net/zhangshenghang/article/details/102459033[SPARK-15279] Disallow ROW FORMAT and STORED AS (parquet | orc | avro etc.) - ASF JIRAhttps://issues.apache.org/jira/browse/SPARK-15279

Spark创建hive表报错 ROW FORMAT DELIMITED is only compatible with ‘textfile‘, not ‘orc‘相关推荐

  1. Spark 创建 hive表报错 ROW FORMAT DELIMITED is only compatible with 'textfile', not 'parquet'

    场景: 在spark分析数据时,创建hive表失败. 提示异常 : 19/10/09 10:59:18 INFO execution.SparkSqlParser: Parsing command: ...

  2. row format delimited fields terminated by “,“含义是以‘,‘结尾的行格式分隔字段

    row format delimited fields terminated by ","含义是以','结尾的行格式分隔字段 欢迎使用Markdown编辑器 hive中 creat ...

  3. 为什么要加上ROW FORMAT DELIMITED NULL DEFINED AS ‘‘;?

    create table if not exists db_app.app_pageview_rate(daystr string,step string,numb int,rate double,r ...

  4. SAP RETAIL WA01创建分配表报错- No allocation rule allowed for allocation strategies or variants-

    SAP RETAIL WA01创建分配表报错- No allocation rule allowed for allocation strategies or variants- 1,执行事务代码WA ...

  5. SAP RETAIL WA01 创建分配表报错 - Plant 0000000039 Confirmation date not maintained.-

    SAP RETAIL WA01 创建分配表报错 - Plant 0000000039 Confirmation date not maintained.- 在SAP零售系统里,试图执行事务代码WA01 ...

  6. mysql 1005 - can't create table_关于创建数据表报错一例(ERROR 1005 Can’t create table (errno: 121))...

    问题描述 曾遇到创建数据表报错问题,报错如下: ERROR 1005 (HY000) at line 18: Can't create table 'db1.t2' (errno: 121) 通过日志 ...

  7. row format delimited fields terminated by ','

    row format delimited fields terminated by ',' 以','结尾的行格式分隔字段

  8. sparksql查询hive表报错:codec com.hadoop.compression.lzo.LzoCodec not found 问题探究

    1.问题描述 在某次测试时,我想用复用已有的表结构,所以拷贝了原来表的部分建表语句重新建了一个表,通过命令行往这个表添加数据正常,但是通过sparksql从该表查询数据时报错: Exception i ...

  9. MySql创建临时表报错 Statement violates GTID consistency

    MySql 在创建临时表时候报错 :Statement violates GTID consistency 一.问题重现 drop table if exists temp_01; create ta ...

最新文章

  1. python threading模块多线程源码示例(一)
  2. gmapping matlab实现_gmapping学习
  3. js之call,apply和bind的模拟实现
  4. SAP调用外部web service
  5. java 压缩字节流_java 压缩 字节流 ,C#解压的问题
  6. ACM10.14题解
  7. ora-00923数据类型不一致_小白学 Python(2):基础数据类型(上)
  8. Ajax应用查询员工信息
  9. 多层感知机和神经网络的区别_学习笔记-从神经元到神经网络
  10. B端产品设计——批量导入
  11. 【蓝桥杯嵌入式】【STM32】7_RTC之实时时间显示和硬件闹钟设置
  12. ctfshow-WEB-web14( 利用数据库读写功能读取网站敏感文件)
  13. 区块链,到底是美好未来还是题材炒作?
  14. jeecgboot开发经验过程
  15. 电子电路设计基本概念100问(三)【学习目标:原理图、PCB、阻抗设计、电子设计基本原则、基本原器件等】
  16. 拯救者R9000p搜不到wifi 解决方法
  17. 小程序开发系列之基础部分-账号注册
  18. Hi3518的uboot中播放音频
  19. 天津渤海职业技术学院计算机宿舍,天津渤海职业技术学院宿舍条件,宿舍几人间环境好不好(图片)...
  20. C#软件开发实例.私人订制自己的屏幕截图工具(十)在截图中包含鼠标指针形状

热门文章

  1. maven仓库的优先级,profile的优先级
  2. 怎么知道云服务器cpu型号,云服务器cpu怎么查看
  3. 如何使用谷歌浏览器Chrome把整个网页保存成图片
  4. 【NOIP2014提高组】石头剪子布
  5. 博客美化总结(持续更新)
  6. linux 1060显卡,Ubuntu 16.04 安装 NVIDIA GeForce GTX 1060 显卡驱动,以及 CUDA 10.1
  7. 旅行青蛙南の旅旅行券_旅行时查找WiFi
  8. 所谓资本寒冬,不过是一厢情愿的破灭
  9. vue省市区 下拉框实现
  10. 成君忆不幸被彭剑锋言中