How to pass Hive conf with sqoop job

280 Views Asked by At

How to pass hive conf parameter with Sqoop import job.

SET hive.tez.container.size=4096 

I am using this hive conf from hive cli every time.

2

There are 2 best solutions below

0
On

Use -D hive.tez.container.size=4096 option in sqoop command line (you can add many -D options):

sqoop import -Dhive.tez.container.size=4096 -Dsomething_else -Dmapreduce.map.java.opts=-Xmx4096m ... other parameters
1
On
<command>[SQOOP-COMMAND]</command>
<arg>[SQOOP-ARGUMENT]</arg>
<file>lib/hive-site.xml</file>