The HBase shell is now based on jirb, the JRuby implementation of the interactive ruby shell irb. Are there any nice tricks for interacting with HBase in JRuby programmatically other than through this shell?
The example on the Hadoop wiki appears to just be straight calls to the Java API; is there anything else I can do?
You can interact directly with the HBase client Java classes.
There's a sample here:
http://wiki.apache.org/hadoop/Hbase/JRuby
There are Thrift and REST APIs for HBase:
http://wiki.apache.org/hadoop/Hbase/ThriftApi
http://hbase.apache.org/docs/r0.20.4/api/org/apache/hadoop/hbase/stargate/package-summary.html#package_description
I'd assume that either of these could be used from Ruby.
There's Rhino http://qslack.com/projects/rhino-a-ruby-hbase-orm/ which is an Ruby ORM for HBase
Related
I have read through the documentation but can't find answer for the following questions:
I would prefer to setup an already running spark cluster (i.e. add a jar to be able to use SnappyContext), or is it mandatory to use bundled spark? If possible, please assist: SPARK_HOME seems to be set on runtime by the launchers
Where to define JAVA_HOME?. For now I did it in bin/spark-class on all snappy server nodes
Build SnappyData with scala 2.11
Appreciated,
Saif
Right now we don't have support for running Snappy with stock Spark, but we are working towards it. Right now you can use Snappy version of Spark.
For Q2, you can set JAVA_HOME in the command line, before starting Snappy servers.
We have not tested Snappy with scala 2.11. So not sure what issues may arise.
I know it is possible to install a Python plugin in PostgreSQL to execute Python code natively.
Is it possible in MySQL server to execute native Python or C++ code?
Yes, there is an api for python and Mysql as well as C++ and Mysql.
You will need the Mysql Connector/Python 2.0 but make sure that it is compatible with your version of Python since they have one for Pv2 and Pv3.
More information here: http://dev.mysql.com/doc/connector-python/en/
There is also a Mysql Connector/C++ 1.1
More information here: http://dev.mysql.com/doc/connector-cpp/en/index.html
I am programming a database with Dart and JSON. So my question is:
When I want to run my app, do I have to have a real webserver running on my PC? And if yes, what kind of a program would you recommend and should it be packed in a virtual-machine?
Thanks in advance!
Karl
Dart VM can run on the command line and it has a built-in web server. You can run Dart VM on Linux, Mac, and Windows. I can't really answer further unless you provide more specifics.
I need to be able to read/write to a mysql database using Perl. On all previous servers I have been able to use ppm-shell do download and configure the DBI module for mysql (mysql-dbd I think). However on one particular server, I don't have internet access.
Is there an easy way to get this installed? I'm on Windows 2008 Server by the way. I'm not brilliant at Perl either so if anyone can give some easy to understand instructions I'd really appreciate it
Thanks
Download the module from here http://cpan.uwinnipeg.ca/PPMPackages/10xx/
install via the command line:
ppm install filename.ppd
Get the module. ( this can help: http://win32.perl.org/wiki/index.php?title=PPM_Repositories)
and do: ppm install FILE.ppd
I am creating application for MAC using cocoa framework, I would like to know how and what are the ways i can connect to MySql database using cocoa framework.
You might want to look into http://www.sequelpro.com/docs/Source_Code. They seem to have resurrected the original MySQL-Cocoa code and it seems to be under active development. The other option is the commercial MacSQL Framework.
Edit: You might also want to look at the following tutorial. It is a great introduction in using the libmysqlclient and even provides a sample Xcode project.
Short answer: You can't, at least not directly.
The Cocoa Framework doesn't have a database driver, generic or otherwise (CoreData notwithstanding). In order to connect to a mysql database you need to use the aptly named libmysqlclient. This library is not included with Xcode, and as such will have to be downloaded (and probably built) separately: You can get it from here.
You'll probably have to distribute the library with your application, license issues might result.
Edit: It seems as if a library for connecting to the mysql database should be installed together with a MySQL server install. If the application will only need to run on machines where MySQL is installed, you might get away with linking to this.