Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
kb:bigdata:hive [2017/11/26 16:30] – created yehuda | kb:bigdata:hive [2022/01/03 16:03] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Quick code ====== | ||
+ | <code sql> | ||
+ | set hive.execution.engine=mr; | ||
+ | |||
+ | set hive.execution.engine=tez; | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | hive --hiveconf hive.root.logger=DEBUG, | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== ADDING UDFs ===== | ||
+ | <code sql> | ||
+ | grant all on uri ' | ||
+ | |||
+ | drop function etl_db.test_yehuda_hash | ||
+ | |||
+ | create function etl_db.test_yehuda_hash as ' | ||
+ | using jar ' | ||
+ | |||
+ | |||
+ | select et2l_db.test_yehuda_hash(" | ||
+ | </ | ||
+ | |||
===== Migrate CSV to hive table ===== | ===== Migrate CSV to hive table ===== | ||
<code sql> | <code sql> |