Skip to content

Commit

Permalink
Adding uploadLocalFileIfChanged to allow HBase & ESearch jobs to run …
Browse files Browse the repository at this point in the history
…in parallel
  • Loading branch information
temujin9 committed Sep 7, 2011
1 parent 224926a commit 38a662f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -256,10 +256,10 @@ private void elasticSearchSetup(String location, Job job) {
Path hdfsConfigPath = new Path(ES_CONFIG_HDFS_PATH);
Path hdfsPluginsPath = new Path(ES_PLUGINS_HDFS_PATH);

HadoopUtils.uploadLocalFile(new Path(LOCAL_SCHEME+esConfig), hdfsConfigPath, job.getConfiguration());
HadoopUtils.uploadLocalFileIfChanged(new Path(LOCAL_SCHEME+esConfig), hdfsConfigPath, job.getConfiguration());
HadoopUtils.shipFileIfNotShipped(hdfsConfigPath, job.getConfiguration());

HadoopUtils.uploadLocalFile(new Path(LOCAL_SCHEME+esPlugins), hdfsPluginsPath, job.getConfiguration());
HadoopUtils.uploadLocalFileIfChanged(new Path(LOCAL_SCHEME+esPlugins), hdfsPluginsPath, job.getConfiguration());
HadoopUtils.shipArchiveIfNotShipped(hdfsPluginsPath, job.getConfiguration());

} catch (Exception e) {
Expand Down

0 comments on commit 38a662f

Please sign in to comment.