I've try using virgil with external cassandra and mapreduce wordcount
in Ruby in the wiki page and always get this error. Is this feature
working ?
org.jruby.embed.ParseFailedException: (SyntaxError) <script>:1:
hunknown regexp options - h
at
org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.runParser(EmbedRubyRuntimeAdapterImpl.java:
207)
at
org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.parse(EmbedRubyRuntimeAdapterImpl.java:
93)
at
org.jruby.embed.ScriptingContainer.parse(ScriptingContainer.java:1163)
at
org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:
1223)
at org.apache.cassandra.http.mapreduce.CassandraMapReduce
$CassandraMapper.setup(CassandraMapReduce.java:115)
at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:142)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:
621)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:305)
at org.apache.hadoop.mapred.LocalJobRunner
$Job.run(LocalJobRunner.java:177)
Caused by: org.jruby.exceptions.RaiseException: (SyntaxError) <script>:
1: hunknown regexp options - h
Thanks for any help.
Regards,
Hieu
I use exactly the wordcount.rb in the @virgil-read-only/src/test/
resources. My virgil and cassandra run in Redhat Enterprise Linux 5. I
also use curl to POST command as the example in wiki page but I forgot
the '@' character before the file name. Now it's working.
Thanks you,
Hieu
On Dec 15, 6:06 pm, "Brian O'Neill" <b...@alumni.brown.edu> wrote:
> Hieu,
>
> It should be working. It looks like it is having trouble compiling the
> ruby file you are posting.
> Maybe the contents of the ruby file are not correct, or the POST command
> isn't sending them properly.
>
> What platform are you on? And how are you posting the file?
> (linux/curl?)
>
> -brian
>