Open jbarber opened 12 years ago
You have to call hb.init() before invoking any other function in the rhbase package. Please look to the examples in the documentation, and unit tests in the package
Thank you for pointing out the documentation. However, on reviewing it I don't think it says that: 1) the call to hb.init() is required 2) your entire R environment will blow up if you don't call hb.init()
In addition, I wouldn't normally expect an R function call to crash the entire environment.
Can I suggest improving the user friendliness of the package by detecting that hb.init() hadn't been called and then some combination of: 1) emitting a warning 2) calling hb.init() with the defaults
and not causing a segfault.
Regards
(warning: I've only just started using hadoop + RHadoop, it's entirely possible I'm doing something wrong)
I get a segfault in rhbase (from the rmr-2.0.0 tag) if I don't call hb.init() before hb.list.tables():
gdb + the core file show the problem being at line 61 of tools.cc:
I guess either "tables" or "client" aren't initialized properly, but my C++ and R skills are too weak to diagnose it further.