You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by Venkat Ranganathan <n....@live.com> on 2015/08/08 06:02:05 UTC

Review Request 37250: SQOOP-2456: Add a environment variable to pass default arguments to Sqoop command line

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/37250/
-----------------------------------------------------------

Review request for Sqoop.


Bugs: SQOOP-2456
    https://issues.apache.org/jira/browse/SQOOP-2456


Repository: sqoop-trunk


Description
-------

It would be useful to have a environment variable that has default options that are passed to the sqoop tool - something like the options file, but more like an environment variable along the lines of JAVA_OPTIONS, _JAVA_OPTIONS etc which will be helpful in some cases

For example, if --hive-overwrite is needed to be added to a sqoop execution.
Added an option SQOOP_CMD_OPTION which can be a simple list of command line options that can be added (whitespace separated) that can be added to Sqoop execution automatically on invocation.


Diffs
-----

  src/java/com/cloudera/sqoop/util/OptionsFileUtil.java 6c6cacd 
  src/java/org/apache/sqoop/Sqoop.java 93736a6 
  src/java/org/apache/sqoop/util/OptionsFileUtil.java c476e00 
  src/test/com/cloudera/sqoop/util/TestOptionsFileExpansion.java 3f0bfb9 

Diff: https://reviews.apache.org/r/37250/diff/


Testing
-------

Unit tests added and all tests pass


Thanks,

Venkat Ranganathan