|
|
-
Re: Access remote HBase server with different user namesDamien Hardy 2012-11-14, 16:04
Hello,
Not sure to understand well. if zookeeper is running on server1 so No need for ssh access : just run `hbase shell` on your desktop with the minimum hbase-site.xml (must be available via $CLASSPATH which is default as `hbase classpath`) as <configuration> <property> <name>hbase.zookeeper.quorum</name> <value>server1</value> </property> </configuration> As you does not seams to use HDFS HA, no need for core-site.xml neither hdfs-site.xml http://archive.apache.org/dist/hbase/docs/client_dependencies.html Regards, -- Damien 2012/11/14 Carsten Schnober <[EMAIL PROTECTED]> > Dear list, > I've set up a HBase server on a dedicated machine. Now, I would like to > be able to access it from a client machine in a typical client mode, > i.e. not running a Hadoop node on it, but only sending requests to the > server. > > The server machine is called server1, up and running, and reachable from > the outside, passwordless SSH access _generally_ working. The problem is > that I'm using different user names on the client machine > (carsten@ThinkPad-T410) and on the server (schnober@server1). > Passwordless SSH does work, but how can I configure the username to use? > I have tried to use the User parameter in the ssh_config file so that it > maps to the username applicable on the server, but that leads to error > messages such as the following: > > carsten@carsten-ThinkPad-T410:~/hbase-0.94.2$ bin/start-hbase.sh > server1: bash: line 0: cd: /home/carsten/hbase-0.94.2/bin/..: File or > directory not found > server1: bash: /home/carsten/hbase-0.94.2/bin/hbase-daemon.sh: File or > directory not found > > When I don't configure SSH to map the username, I'm being prompted for > the password for carsten@server1 when I start hbase on the client. > However, the user 'carsten' doesn't exist on the server machine. > > Of course, I could just change usernames on the client or on the server, > but that does not seem to be a solution because I would like to give > database access to different users in production mode. Is there any way > to do so? > > Actually, I also wonder whether it is really necessary to run a master > on the local machine or whether there is a way to directly access the > master on the server machine through the HBase shell (or directly > through Java). > > The configuration file hbase-site.xml is the following: > > <configuration> > <property> > <name>hbase.rootdir</name> > <value>hdfs://server1:9000/hbase</value> > </property> > <property> > <name>hbase.cluster.distributed</name> > <value>true</value> > </property> > <property> > <name>hbase.zookeeper.quorum</name> > <value>server1</value> > </property> > </configuration> > > > Thank you very much! > Carsten > > -- > Institut für Deutsche Sprache | http://www.ids-mannheim.de > Projekt KorAP | http://korap.ids-mannheim.de > Tel. +49-(0)621-43740789 | [EMAIL PROTECTED] > Korpusanalyseplattform der nächsten Generation > Next Generation Corpus Analysis Platform > -- Damien HARDY IT Infrastructure Architect Viadeo - 30 rue de la Victoire - 75009 Paris - France T : +33 1 80 48 39 73 – F : +33 1 42 93 22 56 |