Reputation: 11259
I want something like
$hive
> ADD FILE <directory_path>;
which adds a directory to working directory of hive.
I am using hive 0.7.
I need this for addding python packages to be used by mapper/reducer scripts.
What are my options?
Upvotes: 1
Views: 1505
Reputation: 11259
What worked for me is zipping all the content (directory/files) to a zip file and using 'ADD ARCHIVE ' as explained in Add multiple files to distributed cache in HIVE
Upvotes: 0
Reputation: 2046
For 0.7.1 you can use the shell escape (!) to run !hadoop fs -mkdir <path>
or the "dfs" command dfs -mkdir <path>
. See the cli wiki page for more info. Not sure if these are in 0.7 or not.
Upvotes: 1