A.james
A.james

Reputation: 27

How to pass Hive conf with sqoop job

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.

Upvotes: 1

Views: 326

Answers (2)

Amardeep Flora
Amardeep Flora

Reputation: 1380

<command>[SQOOP-COMMAND]</command>
<arg>[SQOOP-ARGUMENT]</arg>
<file>lib/hive-site.xml</file>

Upvotes: 1

leftjoin
leftjoin

Reputation: 38325

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

Upvotes: 1

Related Questions