Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

hi, I need to create ETL pipeline, files are generated after hour and then these files are moved to HDFS now i want to load these files into Hive table using below command but i want to automate this process.

New Contributor

LOAD DATA INPATH '/Project/' OVERWRITE INTO TABLE tb1;

3 REPLIES 3

Rising Star

Let me know how you generate the files.

New Contributor

JSON files are generated from twitter API using python now i want to load these files in HIVE tables but need to automate this process.

Rising Star

You can write your processes into script file.

test.sh

# Run the python to generate JSON file

# hive -e "LOAD DATA INPATH '/Project/' OVERWRITE INTO TABLE tb1;"

# hive -e "select * from your table"

Run test.sh !

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.