You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Arun Ahuja <aa...@gmail.com> on 2012/07/25 23:13:55 UTC
Issue with SparseVectorsFromSequenceFiles : Can't find bundle for
base name org.apache.commons.cli2.resource.CLIMessageBundle_en_US
I made some changes to SparseVectorsFromSequenceFiles for it process
files specific to my needs. I am able to compile and generate a jar
with this class and have mahout-core as well as
commons-cli-2.0-mahout.jar bundled in. However, every time I run this
I get this error:
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.arun.mahoututils.SparseVectorsFromSequenceFiles.run(SparseVectorsFromSequenceFiles.java:64)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at com.arun.mahoututils.SparseVectorsFromSequenceFiles.main(SparseVectorsFromSequenceFiles.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:186)
Caused by: java.util.MissingResourceException: Can't find bundle for
base name org.apache.commons.cli2.resource.CLIMessageBundle_en_US,
locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:777)
at org.apache.commons.cli2.resource.ResourceHelper.<init>(ResourceHelper.java:72)
at org.apache.commons.cli2.resource.ResourceHelper.getResourceHelper(ResourceHelper.java:87)
at org.apache.commons.cli2.builder.ArgumentBuilder.<clinit>(ArgumentBuilder.java:34)
... 9 more
I have tried in addition to add mahout-core and
commons-cli-2.0-mahout.jar to the classpath, but no luck, still get
the same error. I saw a thread about this here
http://mail-archives.apache.org/mod_mbox/mahout-user/200910.mbox/%3C9dfff7090910210204i322b2dd4u73eb33f145066024@mail.gmail.com%3E,
but adding more to the classpath didn't seem to resolve this.
The line referenced in the error is just
GroupBuilder gbuilder = new GroupBuilder();
Arun