The "-D" options should be set just after "org.apache.....GiraphRunner"
Because it is this class that integrates  the ToolRunner interface that reads 
the configuration options set by "-D"

Hope it helps
Olivier

Le 1 oct. 2014 à 07:57, "Charith Wickramarachchi" 
<[email protected]<mailto:[email protected]>> a écrit :

Hi,

I am trying to pass some system options into the giraph job so that I can 
access it through the Giraph configuration.

I am using the following command

$HADOOP_HOME/bin/hadoop jar 
giraph-examples-1.1.0-SNAPSHOT-for-hadoop-2.2.0-jar-with-dependencies.jar 
org.apache.giraph.GiraphRunner 
org.apache.giraph.examples.SimpleShortestPathsComputation -vif 
org.apache.giraph.examples.LongDoubleFloatTextInputFormat -vip 
/user/charith/input/tiny_graph_neighbour.txt -vof 
org.apache.giraph.io.formats.IdWithValueTextOutputFormat -op 
/user/charith/output/shortestpaths_el -w 2 
-Dgiraph.mappingStoreClass=org.apache.giraph.mapping.LongLongMappingStore 
-Dgiraph.mappingStoreOpsClass=org.apache.giraph.mapping.DefaultLongLongMappingStoreOps
 
-Dgiraph.graphPartitionerFactoryClass=org.apache.giraph.partition.LongLongMappingStorePartitionerFactory
 -Dgiraph.mappingLocationHdfs=/user/charith/input/tiny_graph_neighbour_map.txt


But it gives me following exception. "Exception in thread "main" 
org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: 
-Dgiraph.mappingStoreClass=org.apache.giraph.mapping.LongLongMappingStore
"

Basically, I want to pass following properties to the job.

-Dgiraph.mappingStoreClass=org.apache.giraph.mapping.LongLongMappingStore 
-Dgiraph.mappingStoreOpsClass=org.apache.giraph.mapping.DefaultLongLongMappingStoreOps
  
-Dgiraph.graphPartitionerFactoryClass=org.apache.giraph.partition.LongLongMappingStorePartitionerFactory
 -Dgiraph.mappingLocationHdfs=/user/charith/input/tiny_graph_neighbour_map.txt

It will be great if someone can help me in this regard.

Thanks,
Charith




--
Charith Dhanushka Wickramaarachchi

Tel  +1 213 447 4253
Web  
http://apache.org/~charith<http://www-scf.usc.edu/~cwickram/><http://charith.wickramaarachchi.org/>
Blog  http://charith.wickramaarachchi.org/<http://charithwiki.blogspot.com/>
Twitter  @charithwiki<https://twitter.com/charithwiki>

This communication may contain privileged or other confidential information and 
is intended exclusively for the addressee/s. If you are not the intended 
recipient/s, or believe that you may have
received this communication in error, please reply to the sender indicating 
that fact and delete the copy you received and in addition, you should not 
print, copy, retransmit, disseminate, or otherwise use the information 
contained in this communication. Internet communications cannot be guaranteed 
to be timely, secure, error or virus-free. The sender does not accept liability 
for any errors or omissions

_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations 
confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce 
message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages 
electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou 
falsifie. Merci.

This message and its attachments may contain confidential or privileged 
information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete 
this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been 
modified, changed or falsified.
Thank you.

Reply via email to