Jump to content

help : raw table in hive


Recommended Posts

Posted

i have data ingested into hive from Kafka that is raw table in which each record is Json object

and i have to convert it to table in hive ,

need to generate surrogate key for each record 

 

How to do that ? 

Help please

 

  • Replies 31
  • Created
  • Last Reply

Top Posters In This Topic

  • vendettaa

    10

  • kasi

    9

  • mettastar

    8

  • jpismahatma

    1

Top Posters In This Topic

Posted
1 hour ago, vendettaa said:

i have a raw table in hive which contains json objects as records (kafka output)

and i have to convert it to table in hive ,

need to generate primary key for each record

 

How to do that ? 

Help please

 

Hive lo inbuilt function undi Json read chryadaniki .. 

Posted
4 minutes ago, mettastar said:

Hive lo inbuilt function undi Json read chryadaniki .. 

reference links unte post it anniyya

 

Posted

DB lo post vesthe evadu help chesthadu. Post inti Kafka or Spark forums. or try to find in the google or bolg posts

Posted
2 hours ago, former said:

DB lo post vesthe evadu help chesthadu. Post inti Kafka or Spark forums. or try to find in the google or bolg posts

Naku telsu ikda vati mida working vallu unnaru 

Posted
1 hour ago, mettastar said:

Lateral view antaru

Json tuple and lateral view column ni string ga convert chesi kada

ikda file anta Json untundi ,ok spark use chesta Inka Json ni dataframe chesi tables Ki pampista

Posted
30 minutes ago, vendettaa said:

Json tuple and lateral view column ni string ga convert chesi kada

ikda file anta Json untundi ,ok spark use chesta Inka Json ni dataframe chesi tables Ki pampista

File antha json untene i used and it worked .. and i used it on a big file 

Posted
4 hours ago, vendettaa said:

i have a raw table in hive which contains json objects as records (kafka output)

and i have to convert it to table in hive ,

need to generate primary key for each record

 

How to do that ? 

Help please

 

😂😂😂😂😂😂

Akka hive lo primary key lu unav.....

Btw asalu nuvvu em cheyali anukuntunav???

 

Naku nuvu em chepputhunavo 1% kuda ardham kala

Posted
2 hours ago, mettastar said:

https://stackoverflow.com/questions/11479247/how-do-you-make-a-hive-table-out-of-json-data

Read one with 25 votes.. i used similar in one of projects .. thats the easiest way i found .. no need to use any serdes 

Kaka antha avasaram kuda ledu....Schema create chesetappudu.....Adi stored as json antea chalu

 

Adi aa Schema ki folder create chesthundhi..... Just aa folder lo json file save chesthea...... Hive table ga read cheyochu

Posted
5 hours ago, vendettaa said:

i have a raw table in hive which contains json objects as records (kafka output)

and i have to convert it to table in hive ,

need to generate primary key for each record

 

How to do that ? 

Help please

 

😂😂😂😂😂😂🤣😂🤣😂🤣

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...