giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charith Wickramarachchi <charith.dhanus...@gmail.com>
Subject Re: Passing options to giraph 1.1.0 - SNAPSHOT, Hadoop 2.2.0
Date Wed, 01 Oct 2014 06:38:37 GMT
Thanks that solved my issue.

--Charith

On Tue, Sep 30, 2014 at 11:12 PM, <olivier.varene@orange.com> wrote:

>  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" <
> charith.dhanushka@gmail.com> 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.
>
>


-- 
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

Mime
View raw message