You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@giraph.apache.org by "Jakob Homan (Created) (JIRA)" <ji...@apache.org> on 2012/01/31 21:52:10 UTC
[jira] [Created] (GIRAPH-136) Erorr message for bin/giraph could be
improved
Erorr message for bin/giraph could be improved
----------------------------------------------
Key: GIRAPH-136
URL: https://issues.apache.org/jira/browse/GIRAPH-136
Project: Giraph
Issue Type: Improvement
Reporter: Jakob Homan
Currently when one just runs bin/giraph without the required jar, the message isn't very helpful:
{noformat}[tardis giraph-0.1]$ bin/giraph
Can't find user jar to execute.{noformat}
It would be better to have a more in-depth message explaining Giraph and what is expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (GIRAPH-136) Erorr message for bin/giraph could
be improved
Posted by "Jakob Homan (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GIRAPH-136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jakob Homan reassigned GIRAPH-136:
----------------------------------
Assignee: Jakob Homan
> Erorr message for bin/giraph could be improved
> ----------------------------------------------
>
> Key: GIRAPH-136
> URL: https://issues.apache.org/jira/browse/GIRAPH-136
> Project: Giraph
> Issue Type: Improvement
> Affects Versions: 0.1.0
> Reporter: Jakob Homan
> Assignee: Jakob Homan
> Fix For: 0.2.0
>
> Attachments: GIRAPH-136.patch
>
>
> Currently when one just runs bin/giraph without the required jar, the message isn't very helpful:
> {noformat}[tardis giraph-0.1]$ bin/giraph
> Can't find user jar to execute.{noformat}
> It would be better to have a more in-depth message explaining Giraph and what is expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (GIRAPH-136) Erorr message for bin/giraph could
be improved
Posted by "Jakob Homan (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GIRAPH-136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13199482#comment-13199482 ]
Jakob Homan commented on GIRAPH-136:
------------------------------------
@Avery - how does this one look?
> Erorr message for bin/giraph could be improved
> ----------------------------------------------
>
> Key: GIRAPH-136
> URL: https://issues.apache.org/jira/browse/GIRAPH-136
> Project: Giraph
> Issue Type: Improvement
> Affects Versions: 0.1.0
> Reporter: Jakob Homan
> Assignee: Jakob Homan
> Fix For: 0.2.0
>
> Attachments: GIRAPH-136-b.patch, GIRAPH-136.patch
>
>
> Currently when one just runs bin/giraph without the required jar, the message isn't very helpful:
> {noformat}[tardis giraph-0.1]$ bin/giraph
> Can't find user jar to execute.{noformat}
> It would be better to have a more in-depth message explaining Giraph and what is expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (GIRAPH-136) Erorr message for bin/giraph could be
improved
Posted by "Jakob Homan (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GIRAPH-136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jakob Homan updated GIRAPH-136:
-------------------------------
Attachment: GIRAPH-136.patch
Patch that chastises no-arg invocations thusly:
{noformat}tardis s003 ~/repos/giraph> bin/giraph
Usage: giraph [-D<Hadoop property>] <jar containing vertex> <parameters to jar>
At a minimum one must provide a path to the jar containing the vertex to be executed.{noformat}
I didn't enumerate all the parameters since that would be duplicating information provided by GiraphRunner.
> Erorr message for bin/giraph could be improved
> ----------------------------------------------
>
> Key: GIRAPH-136
> URL: https://issues.apache.org/jira/browse/GIRAPH-136
> Project: Giraph
> Issue Type: Improvement
> Affects Versions: 0.1.0
> Reporter: Jakob Homan
> Fix For: 0.2.0
>
> Attachments: GIRAPH-136.patch
>
>
> Currently when one just runs bin/giraph without the required jar, the message isn't very helpful:
> {noformat}[tardis giraph-0.1]$ bin/giraph
> Can't find user jar to execute.{noformat}
> It would be better to have a more in-depth message explaining Giraph and what is expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (GIRAPH-136) Error message for bin/giraph could be
improved
Posted by "Jakob Homan (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GIRAPH-136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jakob Homan updated GIRAPH-136:
-------------------------------
Summary: Error message for bin/giraph could be improved (was: Erorr message for bin/giraph could be improved)
> Error message for bin/giraph could be improved
> ----------------------------------------------
>
> Key: GIRAPH-136
> URL: https://issues.apache.org/jira/browse/GIRAPH-136
> Project: Giraph
> Issue Type: Improvement
> Affects Versions: 0.1.0
> Reporter: Jakob Homan
> Assignee: Jakob Homan
> Fix For: 0.2.0
>
> Attachments: GIRAPH-136-b.patch, GIRAPH-136.patch
>
>
> Currently when one just runs bin/giraph without the required jar, the message isn't very helpful:
> {noformat}[tardis giraph-0.1]$ bin/giraph
> Can't find user jar to execute.{noformat}
> It would be better to have a more in-depth message explaining Giraph and what is expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (GIRAPH-136) Erorr message for bin/giraph could be
improved
Posted by "Jakob Homan (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GIRAPH-136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jakob Homan updated GIRAPH-136:
-------------------------------
Attachment: GIRAPH-136-b.patch
Here's a version that tries to be a bit smarter. If there's no lib directory, it checks for a target directory (if target doesn't exist, it exits) and loads the giraph jar from there and sets the classpath via maven (as described above).
This will work for dev enviroments with a hadoop instance. Invariably, this won't work for someone and need to be modified more, but that's how these scripts end up becoming so convoluted.
> Erorr message for bin/giraph could be improved
> ----------------------------------------------
>
> Key: GIRAPH-136
> URL: https://issues.apache.org/jira/browse/GIRAPH-136
> Project: Giraph
> Issue Type: Improvement
> Affects Versions: 0.1.0
> Reporter: Jakob Homan
> Assignee: Jakob Homan
> Fix For: 0.2.0
>
> Attachments: GIRAPH-136-b.patch, GIRAPH-136.patch
>
>
> Currently when one just runs bin/giraph without the required jar, the message isn't very helpful:
> {noformat}[tardis giraph-0.1]$ bin/giraph
> Can't find user jar to execute.{noformat}
> It would be better to have a more in-depth message explaining Giraph and what is expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (GIRAPH-136) Erorr message for bin/giraph could
be improved
Posted by "Avery Ching (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GIRAPH-136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13198070#comment-13198070 ]
Avery Ching commented on GIRAPH-136:
------------------------------------
Okay, hopefully that gets addressed at some point. +1 for this patch.
It would be nice to see help in the message on what is required to get this to work. Another way would be to add to https://cwiki.apache.org/confluence/display/GIRAPH/Index.
> Erorr message for bin/giraph could be improved
> ----------------------------------------------
>
> Key: GIRAPH-136
> URL: https://issues.apache.org/jira/browse/GIRAPH-136
> Project: Giraph
> Issue Type: Improvement
> Affects Versions: 0.1.0
> Reporter: Jakob Homan
> Assignee: Jakob Homan
> Fix For: 0.2.0
>
> Attachments: GIRAPH-136.patch
>
>
> Currently when one just runs bin/giraph without the required jar, the message isn't very helpful:
> {noformat}[tardis giraph-0.1]$ bin/giraph
> Can't find user jar to execute.{noformat}
> It would be better to have a more in-depth message explaining Giraph and what is expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (GIRAPH-136) Erorr message for bin/giraph could
be improved
Posted by "Jakob Homan (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GIRAPH-136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13198050#comment-13198050 ]
Jakob Homan commented on GIRAPH-136:
------------------------------------
Yeah, I had seen that as well. It's a bit of a different issue. This happens when one tries to run bin/giraph from the dev environment (without a lib directory). We can add in the giraph jar from /target to the classpath and add the complete classpath for dependencies (via maven dependencies:classpath or whatever the syntax is), but this will still fail if the jar isn't present. This would be a bit messy, but would be in line with other Hadoop ecoystems bin/scripts...
The current JIRA is addressing user experience from the package.
> Erorr message for bin/giraph could be improved
> ----------------------------------------------
>
> Key: GIRAPH-136
> URL: https://issues.apache.org/jira/browse/GIRAPH-136
> Project: Giraph
> Issue Type: Improvement
> Affects Versions: 0.1.0
> Reporter: Jakob Homan
> Assignee: Jakob Homan
> Fix For: 0.2.0
>
> Attachments: GIRAPH-136.patch
>
>
> Currently when one just runs bin/giraph without the required jar, the message isn't very helpful:
> {noformat}[tardis giraph-0.1]$ bin/giraph
> Can't find user jar to execute.{noformat}
> It would be better to have a more in-depth message explaining Giraph and what is expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (GIRAPH-136) Error message for bin/giraph could
be improved
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GIRAPH-136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13199970#comment-13199970 ]
Hudson commented on GIRAPH-136:
-------------------------------
Integrated in Giraph-trunk-Commit #75 (See [https://builds.apache.org/job/Giraph-trunk-Commit/75/])
GIRAPH-136: Error message for bin/giraph could be improved.
jghoman : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1240303
Files :
* /incubator/giraph/trunk/CHANGELOG
* /incubator/giraph/trunk/bin/giraph
> Error message for bin/giraph could be improved
> ----------------------------------------------
>
> Key: GIRAPH-136
> URL: https://issues.apache.org/jira/browse/GIRAPH-136
> Project: Giraph
> Issue Type: Improvement
> Affects Versions: 0.1.0
> Reporter: Jakob Homan
> Assignee: Jakob Homan
> Fix For: 0.2.0
>
> Attachments: GIRAPH-136-b.patch, GIRAPH-136.patch
>
>
> Currently when one just runs bin/giraph without the required jar, the message isn't very helpful:
> {noformat}[tardis giraph-0.1]$ bin/giraph
> Can't find user jar to execute.{noformat}
> It would be better to have a more in-depth message explaining Giraph and what is expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (GIRAPH-136) Erorr message for bin/giraph could
be improved
Posted by "Avery Ching (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GIRAPH-136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197650#comment-13197650 ]
Avery Ching commented on GIRAPH-136:
------------------------------------
I can verify the error message is improved, but perhaps the message could be improved further? Is there any example usage you have for using this?
aching:~/git/git_svn_giraph_trunk$ ./bin/giraph
Usage: giraph [-D<Hadoop property>] <jar containing vertex> <parameters to jar>
At a minimum one must provide a path to the jar containing the vertex to be executed.
aching:~/git/git_svn_giraph_trunk$ ./bin/giraph target/giraph-0.1-SNAPSHOT-jar-with-dependencies.jar
Can't find Giraph jar.
> Erorr message for bin/giraph could be improved
> ----------------------------------------------
>
> Key: GIRAPH-136
> URL: https://issues.apache.org/jira/browse/GIRAPH-136
> Project: Giraph
> Issue Type: Improvement
> Affects Versions: 0.1.0
> Reporter: Jakob Homan
> Assignee: Jakob Homan
> Fix For: 0.2.0
>
> Attachments: GIRAPH-136.patch
>
>
> Currently when one just runs bin/giraph without the required jar, the message isn't very helpful:
> {noformat}[tardis giraph-0.1]$ bin/giraph
> Can't find user jar to execute.{noformat}
> It would be better to have a more in-depth message explaining Giraph and what is expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (GIRAPH-136) Erorr message for bin/giraph could
be improved
Posted by "Avery Ching (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GIRAPH-136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13199585#comment-13199585 ]
Avery Ching commented on GIRAPH-136:
------------------------------------
+1, much better.
First try.
$ ./bin/giraph target/giraph-0.1-SNAPSHOT-jar-with-dependencies.jar
No lib directory, assuming dev environment
No HADOOP_CONF_DIR set, using /conf
./bin/giraph: line 112: /bin/hadoop: No such file or directory
./bin/giraph: line 112: exec: /bin/hadoop: cannot execute: No such file or directory
Second try after setting HADOOP_CONF_DIR.
$ ./bin/giraph target/giraph-0.1-SNAPSHOT-jar-with-dependencies.jar
No lib directory, assuming dev environment
HADOOP_CONF_DIR=/Users/aching/Avery/Work/source/hadoop-0.20.203.0/conf
usage: org.apache.giraph.GiraphRunner [-aw <arg>] [-c <arg>] [-h] [-if
<arg>] [-ip <arg>] [-of <arg>] [-op <arg>] [-q] [-w <arg>] [-wc
<arg>]
-aw,--aggregatorWriter <arg> AggregatorWriter class
-c,--combiner <arg> VertexCombiner class
-h,--help Help
-if,--inputFormat <arg> Graph inputformat
-ip,--inputPath <arg> Graph input path
-of,--outputFormat <arg> Graph outputformat
-op,--outputPath <arg> Graph output path
-q,--quiet Quiet output
-w,--workers <arg> Number of workers
-wc,--workerContext <arg> WorkerContext class
> Erorr message for bin/giraph could be improved
> ----------------------------------------------
>
> Key: GIRAPH-136
> URL: https://issues.apache.org/jira/browse/GIRAPH-136
> Project: Giraph
> Issue Type: Improvement
> Affects Versions: 0.1.0
> Reporter: Jakob Homan
> Assignee: Jakob Homan
> Fix For: 0.2.0
>
> Attachments: GIRAPH-136-b.patch, GIRAPH-136.patch
>
>
> Currently when one just runs bin/giraph without the required jar, the message isn't very helpful:
> {noformat}[tardis giraph-0.1]$ bin/giraph
> Can't find user jar to execute.{noformat}
> It would be better to have a more in-depth message explaining Giraph and what is expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira