Hbase zookeeper好像是连接报错,求帮忙= = 20C

hbase(main):002:0> create 'test','info'
2017-11-26 11:07:32,602 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2017-11-26 11:07:49,822 ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 4 attempts
2017-11-26 11:07:49,825 WARN [main] zookeeper.ZKUtil: hconnection-0x42b6d0cc, quorum=liubaoxing-precision-workstation-t7500:2182,liubaoxing-slave:2182, baseZNode=/hbase Unable to set watcher on znode (/hbase/hbaseid)
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1041)
at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:220)
at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:479)
at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65)
at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:83)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.retrieveClusterId(HConnectionManager.java:839)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.(HConnectionManager.java:642)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:411)
at org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:390)
at org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:271)
at org.apache.hadoop.hbase.client.HBaseAdmin.(HBaseAdmin.java:195)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.jruby.javasupport.JavaConstructor.newInstanceDirect(JavaConstructor.java:275)
at org.jruby.java.invokers.ConstructorInvoker.call(ConstructorInvoker.java:91)
at org.jruby.java.invokers.ConstructorInvoker.call(ConstructorInvoker.java:178)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:322)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:178)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:182)
at org.jruby.java.proxies.ConcreteJavaProxy$2.call(ConcreteJavaProxy.java:48)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:322)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:178)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:182)
at org.jruby.RubyClass.newInstance(RubyClass.java:829)
at org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535)
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrNBlock.call(JavaMethod.java:266)
at org.jruby.java.proxies.ConcreteJavaProxy$3.call(ConcreteJavaProxy.java:144)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169)
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
at org.jruby.ast.InstAsgnNode.interpret(InstAsgnNode.java:95)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:255)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:223)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:342)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:212)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:216)
at org.jruby.RubyClass.newInstance(RubyClass.java:836)
at org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535)
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrTwoOrNBlock.call(JavaMethod.java:283)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:332)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:203)
at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:190)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:199)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169)
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
at org.jruby.ast.InstAsgnNode.interpret(InstAsgnNode.java:95)
at org.jruby.ast.OpAsgnOrNode.interpret(OpAsgnOrNode.java:100)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:183)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:63)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:183)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135)
at org.jruby.ast.VCallNode.interpret(VCallNode.java:86)
at org.jruby.ast.CallSpecialArgNode.interpret(CallSpecialArgNode.java:57)
at org.jruby.ast.DAsgnNode.interpret(DAsgnNode.java:110)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:111)
at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:374)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:295)
at org.jruby.runtime.InterpretedBlock.yieldSpecific(InterpretedBlock.java:229)
at org.jruby.runtime.Block.yieldSpecific(Block.java:99)
at org.jruby.ast.ZYieldNode.interpret(ZYieldNode.java:25)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:191)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302)
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:144)
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:153)
at org.jruby.ast.FCallNoArgBlockNode.interpret(FCallNoArgBlockNode.java:32)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:255)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:223)
at org.jruby.RubyClass.finvoke(RubyClass.java:611)
at org.jruby.RubyBasicObject.send(RubyBasicObject.java:2787)
at org.jruby.RubyKernel.send(RubyKernel.java:2113)
at org.jruby.RubyKernel$s$send.call(RubyKernel$s$send.gen:65535)
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrTwoOrThreeOrNBlock.call(JavaMethod.java:300)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:352)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:237)
at org.jruby.ast.FCallSpecialArgNode.interpret(FCallSpecialArgNode.java:43)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:111)
at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:374)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:295)
at org.jruby.runtime.InterpretedBlock.yieldSpecific(InterpretedBlock.java:229)
at org.jruby.runtime.Block.yieldSpecific(Block.java:99)
at org.jruby.ast.ZYieldNode.interpret(ZYieldNode.java:25)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)

3个回答

就是连接报错, 我也不知道怎么解决, 可以看看配置上有没有哪里写错了

hbase启动失败
start-dfs.sh 主要启动DataNode NameNode与SecondaryNameNode
jps
start-yarn.sh 主要启动NodeManager ResourceManager
jps
hbase-daemon.sh start zookeeper 主要启动HQuorumPeer
jps
hbase-daemon.sh start master 主要启动HMaster
hbase-daemon.sh start regionserver 主要启动HRegionServer
依次启动,jps核对启动项,逐步分析是在哪一步启动失败了,精确定位错误再分析

若按照二楼操作,还存在连接问题,可以尝试,将zookeeper下hbase目录删除后,重新启动。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
连接zookeeper报错
09:48:41,517 INFO ZooKeeper:100 - Client environment:user.name=cheng 09:48:41,517 INFO ZooKeeper:100 - Client environment:user.home=C:\Users\cheng 09:48:41,518 INFO ZooKeeper:100 - Client environme...
java连接zookeeper集群报错
Could not fully createcollection KeeperErrorCode = NoNode for /live_nodes Watcher org.apache.solr.common.cloud.ConnectionManager@5a9b3751 name:ZooKeeperConnection
请问Java连接HBase 报错
错误:Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.security.authentication.util.KerberosUtil.hasKerberosTicket(Ljavax/security/auth/Subject;)Zrn详细描述:rnrn服务器环境:位于Ubuntu-16.04,Hadoop-2.8.0 HA集群,HBase-1.2.5 rnrn开发环境:Win7 64位,jar 都已经导入rnrn代码:rnrnpublic class TestHBase rn public static Configuration configuration; rn public static Connection connection; rn public static Admin admin; rn rn public static void main(String[] args) throws IOException rn println("Start..."); rn init();rnrn listTables(); rn rn close(); rn println("End..."); rn rnrn/** rn * 查看已有表 rn * rn * @throws IOException rn */ rn public static void listTables() rn rn HTableDescriptor hTableDescriptors[] = null; rn try rn hTableDescriptors = admin.listTables(); rn catch (IOException e) rn // TODO Auto-generated catch block rn e.printStackTrace(); rn rn for (HTableDescriptor hTableDescriptor : hTableDescriptors) rn println(hTableDescriptor.getNameAsString()); rn rn rn rn rn /** rn * 初始化链接 rn */ rn public static void init() rn configuration = HBaseConfiguration.create(); rn //configuration.set("hadoop.home.dir","/home/hadoop/hadoop-home/hadoop-2.8.0/");rn configuration.set("hbase.zookeeper.property.clientPort", "2181"); rn configuration.set("hbase.zookeeper.quorum", "172.16.0.240,172.16.0.241,172.16.0.242"); rn configuration.set("hbase.master", "hdfs://172.16.0.240:60000"); rn configuration.set("hbase.root.dir", "hdfs://172.16.0.240:9000/hbase"); rn rn try rn connection = ConnectionFactory.createConnection(configuration); rn admin = connection.getAdmin(); rn catch (IOException e) rn e.printStackTrace(); rn rn rn rn /** rn * 关闭连接 rn */ rn public static void close() rn try rn if (null != admin) rn admin.close(); rn rn if (null != connection) rn connection.close(); rn rn catch (IOException e) rn e.printStackTrace(); rn rn rn rn rn rn rnrn报错:rnrn11:47:59.807 DEBUG org.apache.hadoop.util.Shell 500 - Failed to detect a valid hadoop home directory java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset.rn at org.apache.hadoop.util.Shell.checkHadoopHomeInner(Shell.java:448) ~[hadoop-common-2.8.0.jar:?]rn at org.apache.hadoop.util.Shell.checkHadoopHome(Shell.java:419) ~[hadoop-common-2.8.0.jar:?]rn at org.apache.hadoop.util.Shell.(Shell.java:496) [hadoop-common-2.8.0.jar:?]rn at org.apache.hadoop.util.StringUtils.(StringUtils.java:79) [hadoop-common-2.8.0.jar:?]rn at org.apache.hadoop.conf.Configuration.getBoolean(Configuration.java:1445) [hadoop-common-2.8.0.jar:?]rn at org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:67) [hbase-common-1.1.1.jar:1.1.1]rn at org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:81) [hbase-common-1.1.1.jar:1.1.1]rn at org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:96) [hbase-common-1.1.1.jar:1.1.1]rn at com.cherrish.hadoop.TestHBase2.init(TestHBase2.java:28) [bin/:?]rn at com.cherrish.hadoop.TestHBase2.listTables(TestHBase2.java:107) [bin/:?]rn at com.cherrish.hadoop.TestHBase2.main(TestHBase2.java:17) [bin/:?]rnrn11:47:59.807 WARN org.apache.hadoop.util.Shell 673 - Did not find winutils.exe: java.io.FileNotFoundException: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset. -see https://wiki.apache.org/hadoop/WindowsProblemsrn11:47:59.807 DEBUG org.apache.hadoop.util.Shell 675 - Failed to find winutils.exe java.io.FileNotFoundException: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset. -see https://wiki.apache.org/hadoop/WindowsProblemsrn at org.apache.hadoop.util.Shell.fileNotFoundException(Shell.java:528) ~[hadoop-common-2.8.0.jar:?]rn at org.apache.hadoop.util.Shell.getHadoopHomeDir(Shell.java:549) ~[hadoop-common-2.8.0.jar:?]rn at org.apache.hadoop.util.Shell.getQualifiedBin(Shell.java:572) ~[hadoop-common-2.8.0.jar:?]rn at org.apache.hadoop.util.Shell.(Shell.java:669) [hadoop-common-2.8.0.jar:?]rn at org.apache.hadoop.util.StringUtils.(StringUtils.java:79) [hadoop-common-2.8.0.jar:?]rn at org.apache.hadoop.conf.Configuration.getBoolean(Configuration.java:1445) [hadoop-common-2.8.0.jar:?]rn at org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:67) [hbase-common-1.1.1.jar:1.1.1]rn at org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:81) [hbase-common-1.1.1.jar:1.1.1]rn at org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:96) [hbase-common-1.1.1.jar:1.1.1]rn at com.cherrish.hadoop.TestHBase2.init(TestHBase2.java:28) [bin/:?]rn at com.cherrish.hadoop.TestHBase2.listTables(TestHBase2.java:107) [bin/:?]rn at com.cherrish.hadoop.TestHBase2.main(TestHBase2.java:17) [bin/:?]rnCaused by: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset.rn at org.apache.hadoop.util.Shell.checkHadoopHomeInner(Shell.java:448) ~[hadoop-common-2.8.0.jar:?]rn at org.apache.hadoop.util.Shell.checkHadoopHome(Shell.java:419) ~[hadoop-common-2.8.0.jar:?]rn at org.apache.hadoop.util.Shell.(Shell.java:496) ~[hadoop-common-2.8.0.jar:?]rn ... 8 morernrnException in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.security.authentication.util.KerberosUtil.hasKerberosTicket(Ljavax/security/auth/Subject;)Zrn at org.apache.hadoop.security.UserGroupInformation.(UserGroupInformation.java:652)rn at org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:843)rn at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:802)rn at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:675)rn at org.apache.hadoop.hbase.security.User$SecureHadoopUser.(User.java:286)rn at org.apache.hadoop.hbase.security.User$SecureHadoopUser.(User.java:282)rn at org.apache.hadoop.hbase.security.User.getCurrent(User.java:185)rn at org.apache.hadoop.hbase.security.UserProvider.getCurrent(UserProvider.java:88)rn at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:215)rn at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:119)rn at com.cherrish.hadoop.TestHBase2.init(TestHBase2.java:36)rn at com.cherrish.hadoop.TestHBase2.listTables(TestHBase2.java:107)rn at com.cherrish.hadoop.TestHBase2.main(TestHBase2.java:17)rn谢谢!rnrn补充:如果编译成jar包到Hadoop 集群上去执行也报错:rnrnCaused by: java.lang.NoSuchMethodError: org.apache.hadoop.security.authentication.util.KerberosUtil.hasKerberosTicket(Ljavax/security/auth/Subject;)Zrnrn14:31:41.543 DEBUG org.apache.hadoop.security.UserGroupInformation$HadoopLoginModule 204 commit - using local user:UnixPrincipal: hadooprn14:31:41.544 DEBUG org.apache.hadoop.security.UserGroupInformation$HadoopLoginModule 210 commit - Using user: "UnixPrincipal: hadoop" with name hadooprn14:31:41.545 DEBUG org.apache.hadoop.security.UserGroupInformation$HadoopLoginModule 220 commit - User entry: "hadoop"rn14:31:41.545 DEBUG org.apache.hadoop.security.UserGroupInformation 841 loginUserFromSubject - Assuming keytab is managed externally since logged in from subject.rnException in thread "main" java.lang.reflect.InvocationTargetExceptionrn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)rnCaused by: java.lang.NoSuchMethodError: org.apache.hadoop.security.authentication.util.KerberosUtil.hasKerberosTicket(Ljavax/security/auth/Subject;)Zrn at org.apache.hadoop.security.UserGroupInformation.(UserGroupInformation.java:652)rn at org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:843)rn at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:802)rn at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:675)rn at org.apache.hadoop.hbase.security.User$SecureHadoopUser.(User.java:286)rn at org.apache.hadoop.hbase.security.User$SecureHadoopUser.(User.java:282)rn at org.apache.hadoop.hbase.security.User.getCurrent(User.java:185)rn at org.apache.hadoop.hbase.security.UserProvider.getCurrent(UserProvider.java:88)rn at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:215)rn at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:119)rn at com.cherrish.hadoop.TestHBase2.init(TestHBase2.java:36)rn at com.cherrish.hadoop.TestHBase2.listTables(TestHBase2.java:107)rn at com.cherrish.hadoop.TestHBase2.main(TestHBase2.java:17)rn ... 5 more
HBase之——连接不上Zookeeper的解决方案
转载请注明出处:https://blog.csdn.net/l1028386804/article/details/88695338 当HBase连不上Zookeeper时,会报出如下的错误信息: Could not start ZK at requested port of 2181. ZK was started at port: 2182. Aborting as clients ...
Hbase错误总结:Hbase连接不上Zookeeper
错误信息: Could not start ZK at requested port of 2181. ZK was started at port: 2182. Aborting as clients (e.g. shell) will not be able to find this ZK quorum 2018-10-24 17:41:57,609 INFO [Thread-2] s...
hbase zookeeper安装部署
用独立安装的zookeeper作为协调服务的hbase的完全分布式安装 既能满足你安装zookeeper要求又能满足你安装hbase的要求
分布式配置zookeeper和hbase
首先jdk+免密登录+hadoop我的用户名字是zzti,  jdk-1.7,  centOS6.8,  hadoop2.5.21.          所有机器都上传zookeeper,hbase或上传一台然后scp Zookeeper mini2:/zzti2.       进入 zookeeper/confcp zoo_sample.cfg zoo.cfgvi zoo.cfg加入以下内容: d...
Hadoop Zookeeper HBase集群
NULL 博文链接:https://zhengzhuangjie.iteye.com/blog/1408185
HBASE 找不到zookeeper节点
在Hbase的shell下,输入命令list,出现错误 ERROR: Can’t get master address from ZooKeeper; znode data == null
hadoop zookeeper hbase 的安装
详细的讲述了hadoop的安装,zookeeper的安装,还有hbase的安装,每一步都非常的详细,按照我的粘贴就行
hbase初探及zookeeper使用
hbase shell是JRuby,所以支持所有的ruby语言。 试下: x=[1,2,3,4] puts x[2] [1,"jack",2.0, 4].each{|x| print x.to_s+"\!"} 其中感叹号要转义 zookeeper简单使用: 在zookeeper机器上使用 zkCli.sh ls / ls /yarn-leader-elect
ZooKeeper 、HBase集群搭建
搭建ZooKeeper和HBase集群
hbase在zookeeper中的数据结构
查看hbase在zookeeper中的数据结构(这一个小的知识点很多人都会忽略)几个比较主要的下面有解释replication, meta-region-server, rs,          节点数   splitWAL,     日志文件backup-masters, table-lock, flush-table-proc, region-in-transition, online-sna...
hbase配置内置的zookeeper
hbase配置内置的zookeeper;hbase配置内置的zookeeper;
Hadoop集群之 ZooKeeper和Hbase环境搭建
前面讲解了Hadoop完全分布式的搭建,本章主要讲解一下在Hadoop完全分布式已经搭建成功的情况下搭建ZooKeeper和Hbase环境
ZooKeeper安装配置+Hbase安装配置
Hbase zookeeper 配置安装
Hbase与zookeeper文档
HBase即Hadoop Database,是一个高可靠性、高性能、面向列、可伸缩的分布式存储系统,利用HBase技术可在普通的PC Server上搭建起大规模结构化存储集群。 HBase是Google Bigtable的开源实现,类似Google Bigtable利用GFS作为其文件存储系统,HBase利用Hadoop HDFS作为其文件存储系统; Google运行MapReduce来处理Bigtable中的海量数据,HBase同样利用Hadoop MapReduce来处理HBase中的海量数据;Google Bigtable利用 Chubby作为协同服务,HBase利用Zookeeper作为对应。
Hbase,Zookeeper完全分布式安装
前段时间安装配置了hadoop集群,这两天想装个hbase然后用些数据学习学习。网上教程有点多也有点乱,摸索了很久,所以还是记录一下自己的配置经验。过程中看了些博客感觉还是不错的,分享一下: 安装配置教程: http://www.linuxidc.com/Linux/2012-12/76947.htm http://blog.csdn.net/lskyne/article/details/89
Hbase和Zookeeper分开管理
第一步编辑conf/hbase-env.sh,找到HBASE_MANAGES_ZK,加入如下一行:export HBASE_MANAGES_ZK=false 这个告诉HBase,不要自己维护Zookeeper第二步光有第一步还不够,由于HBase默认运行在 Standalone 模式,它还是会启动一个Zookeeper。所以,需要将HBase设置为Distributed模式。编辑conf/hbas
zookeeper及hbase安装
zookeeper及hbase安装配置,安装时先检查zookeeper,hbase是否与hadoop版本对应
zookeeper连接是不是指的Hbase的follower节点的连接?
zookeeper连接是不是指的Hbase的follower节点的连接?
完全分布式安装hbase,使用hbase自带的zookeeper
1.我使用的是稳定版本的hbase:hbase-1.2.4-bin.tar.gz 下载地址:http://www-eu.apache.org/dist/ 里面有个stable版本的2.配置环境变量,集群上的每个节点都要配置 vim ~/.bashrcexport HBASE_HOME=/usr/local/hbase/hbase-1.2.4 export PATH=$PATH:$HBASE_H
hbase集群安装(zookeeper和hbase安装)
一,zookeeper安装。 1,将桌面上的zookeeper压缩包移动到指定的文件夹 2,解压该包,并查看解压后它的目录列表: 3,进入到conf目录下先复制一份zoo.cfg文件,再修改zoo.cfg文件 注意:因为我这里只有一台机器,即主从一体,如果是多台的应该这么配: 4,创建datadir指定目录data和创建myid文件: 如果配置多台丛机,还要增加以下信息:
Hbase的体系知识及zookeeper搭建hbase集群
集群下的hbase安装见:https://blog.csdn.net/qq_25948717/article/details/80718580 vim hbase-env.sh 做如下修改: export HBASE_MANAGES_ZK=false export JAVA_HOME=/usr/local/jdk1.8.0_172 --------------...
Java 连接linux下的hbase数据库时报错
下面是报错图: 我的解决办法是: 关闭linux防火墙即可,service iptables stop
java client 连接hbase报错,超时
public static Configuration configuration; static { configuration = HBaseConfiguration.create(); configuration.set("hbase.zookeeper.property.clientPort", "2181"); configuration.set("hbase.zookeeper
MapReduce连接Hbase时报错及处理
MapReduce连接Hbase时报错及处理我的Map class如下:package com.hbasepackage;import java.io.IOException;import org.apache.hadoop.hbase.client.Result;import org.apache.hadoop.hbase.io.ImmutableBytesWritable;import org.
eclipse连接hbase要存储数据时报错
13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=/tmprn13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Client environment:java.compiler=rn13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Client environment:os.name=Linuxrn13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Client environment:os.arch=i386rn13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Client environment:os.version=2.6.38-13-genericrn13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Client environment:user.name=hadooprn13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Client environment:user.home=/home/hadooprn13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Client environment:user.dir=/home/hadoop/Desktop/寒假/HbasePicrn13/03/14 08:38:14 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=192.168.6.202:2181,192.168.6.201:2181,192.168.6.203:2181 sessionTimeout=180000 watcher=hconnectionrn13/03/14 08:38:14 INFO zookeeper.ClientCnxn: Opening socket connection to server /192.168.6.202:2181rn13/03/14 08:38:14 WARN client.ZooKeeperSaslClient: SecurityException: java.lang.SecurityException: Unable to locate a login configuration occurred when trying to find JAAS configuration.rn13/03/14 08:38:14 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration.rn13/03/14 08:38:14 INFO zookeeper.ClientCnxn: Socket connection established to datanode2.local/192.168.6.202:2181, initiating sessionrn13/03/14 08:38:14 INFO zookeeper.ClientCnxn: Session establishment complete on server datanode2.local/192.168.6.202:2181, sessionid = 0x23d62b54a350021, negotiated timeout = 40000rn13/03/14 08:38:14 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 2651@dell20-ubunturn13/03/14 08:38:15 INFO client.HConnectionManager$HConnectionImplementation: getMaster attempt 0 of 10 failed; retrying after sleep of 1008rnjava.net.ConnectException: Connection refusedrn at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)rn at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)rn at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)rn at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:489)rn at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupConnection(HBaseClient.java:416)rn at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupIOstreams(HBaseClient.java:462)rn at org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:1150)rn at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:1000)rn at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Invoker.invoke(WritableRpcEngine.java:150)rn at $Proxy5.getProtocolVersion(Unknown Source)rn at org.apache.hadoop.hbase.ipc.WritableRpcEngine.getProxy(WritableRpcEngine.java:183)rn at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:335)rn at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:312)rn at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:364)rn at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:682)rn at org.apache.hadoop.hbase.client.HBaseAdmin.(HBaseAdmin.java:110)rn at com.hbase.mcc.test.createTable(test.java:51)rn at com.hbase.mcc.test.main(test.java:234)rnrnrnhosts文件也尝试修改过了,可以还是报一样的错
update-database 报错 求帮忙
将 FOREIGN KEY 约束 'FK_dbo.ZhiYuan_ISMS_FrameInfo_dbo.ZhiYuan_ISMS_IrcsInfo_IrcsInfoId' 引入表 'ZhiYuan_ISMS_FrameInfo' 可能会导致循环或多重级联路径。请指定 ON DELETE NO ACTION 或 ON UPDATE NO ACTION,或修改其他 FOREIGN KEY 约束。rn无法创建约束。请参阅前面的错误消息。rnrnrnrn怎么改 求大神
mapreduce读取hbase连接不上,求大神帮忙,痕迹
问题:我在虚拟机上安装Ubuntu server32位,并且安装hadoop和hbase,通过本地eclipse的插件编写测试程序,我在eclipse里单独测试hadoop和hbase都没有问题,可以运行官方wordcount.java,并且可以对hbase增删改查都没有问题,现在想把这两个整合到一起,读取hbase的数据,写到hdfs上,但是始终连接不上,很郁闷,已经查找2天了,还是没有解决,求帮忙,先谢谢了,在线等,很急。。。。。rn[img=https://img-bbs.csdn.net/upload/201307/23/1374543774_282395.jpg][/img]rnrn我的配置信息如下rn一、hadoop:rn1、core-site.xmlrnrnrnrn rn fs.default.namern hdfs://ubuntu:9000rn rn rn hadoop.tmp.dirrn /home/ubuntu/hadoop-1.1.2/tmprn rn rn hadoop.native.librn truern Should native hadoop libraries, if present, be used.rn rnrn2、mapred-site.xmlrnrnrnrn rn mapred.job.trackerrn localhost:9001rn rnrn3、hdfs-site.xmlrnrnrnrn rn dfs.replicationrn 1rn rn rn dfs.permissionsrn falsern rnrnrn二、hbasern1、hbase-site.xmlrnrnrn hbase.rootdirrn hdfs://ubuntu:9000/hbasernrnrn hbase.cluster.distributedrn truernrnrnrnrnhosts和环境变量就不贴了,对了我使用的版本是hadoop1.1.2 、hbase0.94.9,在线等求大神门帮忙解决,很急,我的qq:826192947,谢谢
HBase伪分布式安装(HDFS)+ZooKeeper安装+HBase数据操作+HBase架构体系
HBase1.2.2伪分布式安装(HDFS)+ZooKeeper-3.4.8安装配置+HBase表和数据操作+HBase的架构体系+单例安装,记录了在Ubuntu下对HBase1.2.2的实践操作,HBase的安装到数据库表的操作.包含内容1.HBase单例安装2.HBase伪分布式安装(基于Hadoop的HDFS)过程,3.HBase的shell编程,对HBase表的创建,删...
【python 连接hbase】python连接hbase 简单
python是通过thrift去访问操作hbase 1、首先需要先安装happyhbase和thrift pip install happybase pip install thrift 2、需要修改源码一个文件parser.py 如果执行的时候报错: py.parser.exc.ThriftParserError: ThriftPy does not support generati...
hadoop、zookeeper、hbase、spark集群配置文件
搭建hadoop+zookeeper+hbase+spark集群的配置文件和启停命令
hadoop集群基础上安装ZooKeeper和HBase
之前的文章已经介绍了如何搭建hadoop集群,以及在hadoop集群之上搭建spark集群。可以点击如下链接查看: 一、centos7+hadoop2.8.0+VMware搭建完全分布式集群 二、hadoop完全分布式基础上搭建spark集群 本篇文章记录的是在上述hadoop集群上安装HBase和ZooKeeper的过程,以备后续参考! 软件版本和系统环境 ①HBase,1.2.5,下...
Hbase使用已经安装的zookeeper
1.修改conf/hbase-env.sh,添加jdk支持 [code="java"]export JAVA_HOME=/usr/local/jdk export HBASE_MANAGES_ZK=false[/code] 2.拷贝zookeeper的配置文件zoo.cfg到HBase的CLASSPATH(官方推荐的方式) [code="java"]root@master:/dat...
Hbase分布式搭建之Zookeeper搭建
zookeeper 安装包:https://download.csdn.net/download/leoe_/10292256 1、解压zooker-3-4-5.tar.gz 解压:# tar -zxf zookeeper-3.4.5.tar.gz 更改名字为zookeeper:# mv zookeeper-3.4.5 u-zookeeper 2、修改zoo.cfg配置文...
hadoop、zookeeper、hbase安装配置集群
一、安装或克隆虚拟机,安装jdk,并克隆集群(采取复制方式,同样会导致网卡变更的情况) 简易安装centos(一台),安装完成: ①、ifconfig检查网络,观察网卡是否为eth0,若是,记下IP地址和子网掩码;若不是,为eth1的话, su 然后vi /etc/udev/rules.d/70-persistent-net.rules 文件内有eth0和eth1两行,而ifconfig
Zookeeper和Hbase安装总结手册.
Zookeeper和Hbase安装总结手册.
hadoop、zookeeper、hbase、spark集群环境搭建
本文详细讲解如何搭建hadoop、zookeeper、hbase和spark的集群环境,这里我是在本地虚拟机上搭建的集群,但是和实际环境的配置差不多。我会从零开始搭建并且尽量写得详细,所以还会讲到很多配置linux环境的东西,希望大家不要烦,务必按照步骤一步步做下去。 本文主要讲了以下内容: Linux系统的一些基础配置 安装jdk 配置SSH免登陆 hadoop的安装和配置 zookeeper集
Zookeeper伪分布式和HBase伪分布式安装
Zookeeper伪分布式和HBase伪分布式安装 Zookeeper伪分布安装: 下载地址:(http://zookeeper.apache.org/releases.html#download) 1. 解压缩 zookeeper安装包: sudo tar zxvf zookeeper.tar.gz -C /usr/local 2. 进入解压后的conf目录...
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数