apache spark - How do I create external Hive Table based on existing Orc file? -


i have orc files produced spark job. there easy way create external table directly files?

the way have done first register temp table in spark job , leverage sql method of hivecontext create new table in hive using data temp table. example if have dataframe df , hivecontext hc general process is:

df.registertemptable("my_temp_table") hc.sql("create table new_table_name stored orc  select * my_temp_table") 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -