hadoop hive数据加载

问题描述 投票:0回答:1

我有以下格式的json数据,我只需要将“text”字段插入到hive中的表中。

[
  {
    "fullname": "Jia Khan",   
    "id": "832576802904240129",
    "likes": "1",
    "replies": "0",
    "retweets": "0",
    "text": "This is gonna be an intense showdown only if the weather showed some mercy. @PeshawarZalmi #AbKhelJamayGa #PZvQG #HarDilZalmi #HBLPSL",
    "timestamp": "2017-02-17T13:05:52",
    "user": "iamJiaKhan"
  }
]
json hive
1个回答
0
投票

首先,您可以为所有数据字段创建临时表,然后您可以通过从临时表中仅选择一个必填字段来创建最终表。

© www.soinside.com 2019 - 2024. All rights reserved.