giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Re: Passing options to giraph 1.1.0 - SNAPSHOT, Hadoop 2.2.0
Date Wed, 01 Oct 2014 06:12:43 GMT
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

Le 1 oct. 2014 à 07:57, "Charith Wickramarachchi" <<>>
a écrit :


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 -op /user/charith/output/shortestpaths_el
-w 2 -Dgiraph.mappingStoreClass=org.apache.giraph.mapping.LongLongMappingStore -Dgiraph.mappingStoreOpsClass=org.apache.giraph.mapping.DefaultLongLongMappingStoreOps

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

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


Charith Dhanushka Wickramaarachchi

Tel  +1 213 447 4253
Twitter  @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.

View raw message