azure - 在按需 hdinsight 集群的配置单元脚本中使用 JsonSerDe
问题描述
我编写了一个在现有 HDInsight 群集中运行良好的配置单元脚本。但是,当我通过按需集群中的 Azure 数据工厂实例化脚本时,出现以下错误:
Caused by: java.lang.ClassNotFoundException: Class org.apache.hive.hcatalog.data.JsonSerDe not found
at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2214)
at org.apache.hadoop.hive.ql.plan.PartitionDesc.getDeserializer(PartitionDesc.java:143)
at org.apache.hadoop.hive.ql.exec.MapOperator.getConvertedOI(MapOperator.java:316)
... 19 more
我使用 JsonSerDe 将数据从 JSON 文件加载到配置单元表中。在我现有的集群中,该类在没有任何额外配置的情况下存在。是否有必要为按需集群明确指定 JsonSerDe JAR 文件,如果是这样,这怎么可能?
解决方案
推荐阅读
- html - 如何使单个离子卡项目列表可滚动
- bash - 用于检查文件最后一列中的字符串并将其操作为整数的 Bash 脚本
- python - 在 python 中读取网页时出错,但 url 在 webbrowser 上有效
- r - 在同一函数中加入两个时间序列
- python - 如何优化包含 R 或 Python 中的积分的函数?
- java - 我可以为这个程序编写什么断言测试用例?
- bash - 为什么需要 nohup 并且 disown 本身不起作用?
- mongodb - mongodb 是否可以在 3 个服务器上安装 3 个分片,每个分片都有副本集
- angular - 如何以角度验证formarray?
- javascript - 用户提交日期后自动生成天数