|
|
-
setup of a standalone HBase on local filesystem
Alok Singh Mahor 2012-11-26, 10:27
Hi all, I want to setup HBase in standalone mode on local filesystem. I want to use local file system so I guess no need to install hadoop and zookeeper. I followed the instructions from http://hbase.apache.org/book/quickstart.htmli didnt set hbase.rootdir in conf/hbase-site.xml as it will use default /tmp I am using Kubuntu 12.10 and and JAVA_HOME=/usr/lib/jvm/java-1. 6.0-openjdk as java 1.6 is required. HBase shell is running fine but I am unable to create table I am getting error hbase(main):001:0> create 'test', 'cf' ERROR: org.apache.hadoop.hbase.MasterNotRunningException: Retried 7 times Here is some help for this command: Create table; pass table name, a dictionary of specifications per column family, and optionally a dictionary of table configuration. Dictionaries are described below in the GENERAL NOTES section. Examples: hbase> create 't1', {NAME => 'f1', VERSIONS => 5} hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'} hbase> # The above in shorthand would be the following: hbase> create 't1', 'f1', 'f2', 'f3' hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true} hbase> create 't1', 'f1', {SPLITS => ['10', '20', '30', '40']} hbase> create 't1', 'f1', {SPLITS_FILE => 'splits.txt'} hbase> # Optionally pre-split the table into NUMREGIONS, using hbase> # SPLITALGO ("HexStringSplit", "UniformSplit" or classname) hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit'} hbase(main):002:0> could someone tell me where I am wrong?
+
Alok Singh Mahor 2012-11-26, 10:27
-
Re: setup of a standalone HBase on local filesystem
Mohammad Tariq 2012-11-26, 10:37
Have you changed the line "127.0.1.1" in your "/etc/hosts" file to "127.0.0.1"?? Regards, Mohammad Tariq On Mon, Nov 26, 2012 at 3:57 PM, Alok Singh Mahor <[EMAIL PROTECTED]>wrote: > Hi all, > I want to setup HBase in standalone mode on local filesystem. > I want to use local file system so I guess no need to install hadoop > and zookeeper. > I followed the instructions from > http://hbase.apache.org/book/quickstart.html> i didnt set hbase.rootdir in conf/hbase-site.xml as it will use default > /tmp > > I am using Kubuntu 12.10 and and > JAVA_HOME=/usr/lib/jvm/java-1. > 6.0-openjdk as java 1.6 is required. > > HBase shell is running fine but I am unable to create table > I am getting error > > hbase(main):001:0> create 'test', 'cf' > > ERROR: org.apache.hadoop.hbase.MasterNotRunningException: Retried 7 times > > Here is some help for this command: > Create table; pass table name, a dictionary of specifications per > column family, and optionally a dictionary of table configuration. > Dictionaries are described below in the GENERAL NOTES section. > Examples: > > hbase> create 't1', {NAME => 'f1', VERSIONS => 5} > hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'} > hbase> # The above in shorthand would be the following: > hbase> create 't1', 'f1', 'f2', 'f3' > hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000, > BLOCKCACHE => true} > hbase> create 't1', 'f1', {SPLITS => ['10', '20', '30', '40']} > hbase> create 't1', 'f1', {SPLITS_FILE => 'splits.txt'} > hbase> # Optionally pre-split the table into NUMREGIONS, using > hbase> # SPLITALGO ("HexStringSplit", "UniformSplit" or classname) > hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => > 'HexStringSplit'} > > > hbase(main):002:0> > > could someone tell me where I am wrong? >
+
Mohammad Tariq 2012-11-26, 10:37
-
Re: setup of a standalone HBase on local filesystem
Alok Singh Mahor 2012-11-26, 10:42
content of my /etc/hosts is 127.0.0.1 localhost 127.0.1.1 alok # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters do i need to change anything in this? and do i need to install hadoop and zookeeper for standalone HBase installation? On Mon, Nov 26, 2012 at 4:07 PM, Mohammad Tariq <[EMAIL PROTECTED]> wrote: > Have you changed the line "127.0.1.1" in your "/etc/hosts" file to > "127.0.0.1"?? > > Regards, > Mohammad Tariq > > > > On Mon, Nov 26, 2012 at 3:57 PM, Alok Singh Mahor <[EMAIL PROTECTED] > >wrote: > > > Hi all, > > I want to setup HBase in standalone mode on local filesystem. > > I want to use local file system so I guess no need to install hadoop > > and zookeeper. > > I followed the instructions from > > http://hbase.apache.org/book/quickstart.html> > i didnt set hbase.rootdir in conf/hbase-site.xml as it will use default > > /tmp > > > > I am using Kubuntu 12.10 and and > > JAVA_HOME=/usr/lib/jvm/java-1. > > 6.0-openjdk as java 1.6 is required. > > > > HBase shell is running fine but I am unable to create table > > I am getting error > > > > hbase(main):001:0> create 'test', 'cf' > > > > ERROR: org.apache.hadoop.hbase.MasterNotRunningException: Retried 7 times > > > > Here is some help for this command: > > Create table; pass table name, a dictionary of specifications per > > column family, and optionally a dictionary of table configuration. > > Dictionaries are described below in the GENERAL NOTES section. > > Examples: > > > > hbase> create 't1', {NAME => 'f1', VERSIONS => 5} > > hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'} > > hbase> # The above in shorthand would be the following: > > hbase> create 't1', 'f1', 'f2', 'f3' > > hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000, > > BLOCKCACHE => true} > > hbase> create 't1', 'f1', {SPLITS => ['10', '20', '30', '40']} > > hbase> create 't1', 'f1', {SPLITS_FILE => 'splits.txt'} > > hbase> # Optionally pre-split the table into NUMREGIONS, using > > hbase> # SPLITALGO ("HexStringSplit", "UniformSplit" or classname) > > hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => > > 'HexStringSplit'} > > > > > > hbase(main):002:0> > > > > could someone tell me where I am wrong? > > > -- Alok Singh Mahor http://alokmahor.co.ccJoin the next generation of computing, Open Source and Linux/GNU!!
+
Alok Singh Mahor 2012-11-26, 10:42
-
Re: setup of a standalone HBase on local filesystem
Mohammad Tariq 2012-11-26, 10:46
Change 127.0.1.1 alok to 127.0.0.1 alok.
No, Hadoop and ZK are not required for local Hbase setup. But, I would recommend at least a pseudo-distributed setup in order to get yourself familiar with Habse properly.
HTH Regards, Mohammad Tariq
On Mon, Nov 26, 2012 at 4:12 PM, Alok Singh Mahor <[EMAIL PROTECTED]>wrote:
> 127.0.1.1 alok
+
Mohammad Tariq 2012-11-26, 10:46
-
Re: setup of a standalone HBase on local filesystem
Alok Singh Mahor 2012-11-26, 10:54
wow :) thanks a lot , my hbase shell commands are working now :) I will try to setup pseudo-distributed mode please tell me one more thing ..can I set any directory for hbase.rootdir in conf/hbase-site.xml currently I have not set anything thanks On Mon, Nov 26, 2012 at 4:16 PM, Mohammad Tariq <[EMAIL PROTECTED]> wrote: > Change 127.0.1.1 alok to 127.0.0.1 alok. > > No, Hadoop and ZK are not required for local Hbase setup. But, I would > recommend at least a pseudo-distributed setup in order to get yourself > familiar with Habse properly. > > HTH > Regards, > Mohammad Tariq > > > > On Mon, Nov 26, 2012 at 4:12 PM, Alok Singh Mahor <[EMAIL PROTECTED] > >wrote: > > > 127.0.1.1 alok > -- Alok Singh Mahor http://alokmahor.co.ccJoin the next generation of computing, Open Source and Linux/GNU!!
+
Alok Singh Mahor 2012-11-26, 10:54
-
Re: setup of a standalone HBase on local filesystem
Mohammad Tariq 2012-11-26, 10:58
You are welcome Alok :) Yes, you can set that value through hbase-site.xml file. You can visit this link, if you need any help : http://cloudfront.blogspot.in/2012/06/how-to-configure-habse-in-pseudo.htmlI have outlined the whole process there. HTH Regards, Mohammad Tariq On Mon, Nov 26, 2012 at 4:24 PM, Alok Singh Mahor <[EMAIL PROTECTED]>wrote: > wow :) > thanks a lot , my hbase shell commands are working now :) > I will try to setup pseudo-distributed mode > > please tell me one more thing ..can I set any directory for hbase.rootdir > in conf/hbase-site.xml > currently I have not set anything > thanks > > On Mon, Nov 26, 2012 at 4:16 PM, Mohammad Tariq <[EMAIL PROTECTED]> > wrote: > > > Change 127.0.1.1 alok to 127.0.0.1 alok. > > > > No, Hadoop and ZK are not required for local Hbase setup. But, I would > > recommend at least a pseudo-distributed setup in order to get yourself > > familiar with Habse properly. > > > > HTH > > Regards, > > Mohammad Tariq > > > > > > > > On Mon, Nov 26, 2012 at 4:12 PM, Alok Singh Mahor <[EMAIL PROTECTED] > > >wrote: > > > > > 127.0.1.1 alok > > > > > > -- > Alok Singh Mahor > http://alokmahor.co.cc> Join the next generation of computing, Open Source and Linux/GNU!! >
+
Mohammad Tariq 2012-11-26, 10:58
-
Re: setup of a standalone HBase on local filesystem
Alok Singh Mahor 2012-11-26, 16:31
thank you :) On Mon, Nov 26, 2012 at 4:28 PM, Mohammad Tariq <[EMAIL PROTECTED]> wrote: > You are welcome Alok :) > > Yes, you can set that value through hbase-site.xml file. > > You can visit this link, if you need any help : > http://cloudfront.blogspot.in/2012/06/how-to-configure-habse-in-pseudo.html> > I have outlined the whole process there. > > HTH > > Regards, > Mohammad Tariq > > > > On Mon, Nov 26, 2012 at 4:24 PM, Alok Singh Mahor <[EMAIL PROTECTED] > >wrote: > > > wow :) > > thanks a lot , my hbase shell commands are working now :) > > I will try to setup pseudo-distributed mode > > > > please tell me one more thing ..can I set any directory for hbase.rootdir > > in conf/hbase-site.xml > > currently I have not set anything > > thanks > > > > On Mon, Nov 26, 2012 at 4:16 PM, Mohammad Tariq <[EMAIL PROTECTED]> > > wrote: > > > > > Change 127.0.1.1 alok to 127.0.0.1 alok. > > > > > > No, Hadoop and ZK are not required for local Hbase setup. But, I would > > > recommend at least a pseudo-distributed setup in order to get yourself > > > familiar with Habse properly. > > > > > > HTH > > > Regards, > > > Mohammad Tariq > > > > > > > > > > > > On Mon, Nov 26, 2012 at 4:12 PM, Alok Singh Mahor <[EMAIL PROTECTED] > > > >wrote: > > > > > > > 127.0.1.1 alok > > > > > > > > > > > -- > > Alok Singh Mahor > > http://alokmahor.co.cc> > Join the next generation of computing, Open Source and Linux/GNU!! > > > -- Alok Singh Mahor http://alokmahor.co.ccJoin the next generation of computing, Open Source and Linux/GNU!!
+
Alok Singh Mahor 2012-11-26, 16:31
-
Re: setup of a standalone HBase on local filesystem
ramkrishna vasudevan 2012-11-26, 16:33
Setting up a local system HBase is frequently asked in the mailing list :). Regards Ram On Mon, Nov 26, 2012 at 10:01 PM, Alok Singh Mahor <[EMAIL PROTECTED]>wrote: > thank you :) > > On Mon, Nov 26, 2012 at 4:28 PM, Mohammad Tariq <[EMAIL PROTECTED]> > wrote: > > > You are welcome Alok :) > > > > Yes, you can set that value through hbase-site.xml file. > > > > You can visit this link, if you need any help : > > > http://cloudfront.blogspot.in/2012/06/how-to-configure-habse-in-pseudo.html> > > > I have outlined the whole process there. > > > > HTH > > > > Regards, > > Mohammad Tariq > > > > > > > > On Mon, Nov 26, 2012 at 4:24 PM, Alok Singh Mahor <[EMAIL PROTECTED] > > >wrote: > > > > > wow :) > > > thanks a lot , my hbase shell commands are working now :) > > > I will try to setup pseudo-distributed mode > > > > > > please tell me one more thing ..can I set any directory for > hbase.rootdir > > > in conf/hbase-site.xml > > > currently I have not set anything > > > thanks > > > > > > On Mon, Nov 26, 2012 at 4:16 PM, Mohammad Tariq <[EMAIL PROTECTED]> > > > wrote: > > > > > > > Change 127.0.1.1 alok to 127.0.0.1 alok. > > > > > > > > No, Hadoop and ZK are not required for local Hbase setup. But, I > would > > > > recommend at least a pseudo-distributed setup in order to get > yourself > > > > familiar with Habse properly. > > > > > > > > HTH > > > > Regards, > > > > Mohammad Tariq > > > > > > > > > > > > > > > > On Mon, Nov 26, 2012 at 4:12 PM, Alok Singh Mahor < > [EMAIL PROTECTED] > > > > >wrote: > > > > > > > > > 127.0.1.1 alok > > > > > > > > > > > > > > > > -- > > > Alok Singh Mahor > > > http://alokmahor.co.cc> > > Join the next generation of computing, Open Source and Linux/GNU!! > > > > > > > > > -- > Alok Singh Mahor > http://alokmahor.co.cc> Join the next generation of computing, Open Source and Linux/GNU!! >
+
ramkrishna vasudevan 2012-11-26, 16:33
-
Re: setup of a standalone HBase on local filesystem
Michael Segel 2012-11-26, 16:36
I wouldn't do that unless you're running in a VM. Also don't lose the local host reference. That's the important one.
On Nov 26, 2012, at 4:46 AM, Mohammad Tariq <[EMAIL PROTECTED]> wrote:
> Change 127.0.1.1 alok to 127.0.0.1 alok. > > No, Hadoop and ZK are not required for local Hbase setup. But, I would > recommend at least a pseudo-distributed setup in order to get yourself > familiar with Habse properly. > > HTH > Regards, > Mohammad Tariq > > > > On Mon, Nov 26, 2012 at 4:12 PM, Alok Singh Mahor <[EMAIL PROTECTED]>wrote: > >> 127.0.1.1 alok
+
Michael Segel 2012-11-26, 16:36
|
|