[jira] [Commented] (AVRO-1990) CreateRandomFileTool should validate arguments

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (AVRO-1990) CreateRandomFileTool should validate arguments

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/AVRO-1990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16048877#comment-16048877 ]

ASF subversion and git services commented on AVRO-1990:
-------------------------------------------------------

Commit 8336f7ece1dc65b1dc17edff5dab9d9ad7aa9666 in avro's branch refs/heads/master from [~nkollar]
[ https://git-wip-us.apache.org/repos/asf?p=avro.git;h=8336f7e ]

AVRO-1990: CreateRandomFileTool should validate arguments

This closes #226


> CreateRandomFileTool should validate arguments
> ----------------------------------------------
>
>                 Key: AVRO-1990
>                 URL: https://issues.apache.org/jira/browse/AVRO-1990
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.9.0
>            Reporter: Sean Busbey
>            Assignee: Nandor Kollar
>              Labels: beginner
>
> Running CreateRandomFileTool without the {{--count}} argument results in a NPE. it should instead give a useful error message.
> {code}
> java -jar lang/java/tools/target/avro-tools-1.9.0-SNAPSHOT.jar random --schema '{ "type": "record", "name": "foobar", "fields": [ {"name": "field0", "type": "string"}, {"name":"field2", "type":"int"}]}' ~/Downloads/example.0.avro
> log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.avro.tool.CreateRandomFileTool.run(CreateRandomFileTool.java:89)
> at org.apache.avro.tool.Main.run(Main.java:87)
> at org.apache.avro.tool.Main.main(Main.java:76)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)