Skip to content

Commit

Permalink
Avoid a warning about an invalid config option
Browse files Browse the repository at this point in the history
GraphDatabaseConfiguration.getLocalConfiguration sets the
"gremlin.graph" property to TitanFactory's full package and classname.
MapReduceIndexManagement doesn't need this key, and it leads to a
scary warning when copying the graph's local configuration into a
Hadoop configuration object for use in an index management job.
Removing this key to avoid the warning.
  • Loading branch information
dalaro committed Apr 28, 2015
1 parent 9b77325 commit ae0be27
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -162,7 +162,9 @@ public TitanManagement.IndexJobFuture updateIndex(TitanIndex index, SchemaAction
titanmrConf.set(TitanHadoopConfiguration.SCAN_JOB_CONFIG_ROOT,
GraphDatabaseConfiguration.class.getName() + "#JOB_NS");
// Copy the StandardTitanGraph configuration under TitanHadoopConfiguration.TITAN_INPUT_CONFIG_KEYS
copyInputKeys(hadoopConf, graph.getConfiguration().getLocalConfiguration());
org.apache.commons.configuration.Configuration localbc = graph.getConfiguration().getLocalConfiguration();
localbc.clearProperty(Graph.GRAPH);
copyInputKeys(hadoopConf, localbc);

String jobName = HadoopScanMapper.class.getSimpleName() + "[" + indexJobClass.getSimpleName() + "]";

Expand Down

0 comments on commit ae0be27

Please sign in to comment.