kundera
kundera copied to clipboard
ERROR schemamanager.HBaseSchemaManagerCaused by: org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=35, exceptions:
Hi, I'm trying to connect from windows system(dev envirnoment) to linux server(hbase is installed). I'm facing this issue ERROR [localhost-startStop-1] schemamanager.HBaseSchemaManager (HBaseSchemaManager.java:update(112)) - Either check for network connection or table isn't in enabled state, Caused by: org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=35, exceptions:
We are on windows 10 system Even i have added entry in etc/hosts 172.16.0.157 UCSL-GKL-HDP-07 Windows fire wall is turned off Antivirus is turned off Windows defender is turned off
We are getting this error after this step
"Session establishment complete on server"
Actual log is as below
2017-09-15 19:50:03,934 WARN [localhost-startStop-1] util.NativeCodeLoader (NativeCodeLoader.java:
2017-09-15 19:50:04,203 INFO [localhost-startStop-1] zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:java.compiler=<NA>
2017-09-15 19:50:04,203 INFO [localhost-startStop-1] zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:os.name=Windows 10
2017-09-15 19:50:04,203 INFO [localhost-startStop-1] zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:os.arch=amd64
2017-09-15 19:50:04,203 INFO [localhost-startStop-1] zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:os.version=10.0
2017-09-15 19:50:04,203 INFO [localhost-startStop-1] zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:user.name=Jeevitesh
2017-09-15 19:50:04,203 INFO [localhost-startStop-1] zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:user.home=C:\Users\jeevitesh
2017-09-15 19:50:04,203 INFO [localhost-startStop-1] zookeeper.ZooKeeper (Environment.java:logEnv(100)) - Client environment:user.dir=E:\jeevi\NewEclipse\eclipse
2017-09-15 19:50:04,203 INFO [localhost-startStop-1] zookeeper.ZooKeeper (ZooKeeper.java:
Below is persistance file
As you can see "update" in "kundera.ddl.auto.prepare" . I'm expecting all the tables to be created.
Any suggestion towards this issue will help me a lot.
Hi @jeevitesh,
Use kundera-hbase-v2
module instead of kundera-hbase
. Use this dependency:
<dependency>
<groupId>com.impetus.kundera.client</groupId>
<artifactId>kundera-hbase-v2</artifactId>
<version>${kundera.version}</version>
</dependency>
Check Kundera with HBase for more details.
-Dev
I have done those changes still error persists. I have sent(by mail : gmail) a sample project where you can reproduce the issue. kindly help us in this regard.
Hi @jeevitesh,
First of all, use only latest version of Kundera and kundera-hbase-v2
module.
We tested it with 1.2, 1.0 & 0.96 HBase versions.
kundera-elastic-search
is needed if you want to store indexes in elasticsearch along with data in HBase. I recommend start with only kundera-hbase-v2
. Once you are able to perform simple queries then you can use kundera-elastic-search
for aggregation queries.
It looks like a connection problem. Start without using schema generation feature and create schema at your own.
-Dev
Hi Devendar, Thanks for the response.. Currently there are no store indexes.. "Start without using schema generation feature" not able to understand this can kindly explain thnaks jeevitesh
On Thu, Oct 5, 2017 at 12:33 PM, Devender Yadav [email protected] wrote:
Hi @jeevitesh https://github.com/jeevitesh,
First of all, use only latest version of Kundera and kundera-hbase-v2 module.
We tested it with 1.2, 1.0 & 0.96 HBase versions.
kundera-elastic-search is needed if you want to store indexes in elasticsearch along with data in HBase. I recommend start with only kundera-hbase-v2. Once you are able to perform simple queries then you can use kundera-elastic-search for aggregation queries.
It looks like a connection problem. Start without using schema generation feature.
-Dev
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/impetus-opensource/Kundera/issues/968#issuecomment-334377043, or mute the thread https://github.com/notifications/unsubscribe-auth/AGagwwCbmIqr_ikuaauUF2YeAQJuKFw5ks5spH8tgaJpZM4PZISg .
Hi @jeevitesh,
You added schema auto-generation property in persistence.xml
<property name="kundera.ddl.auto.prepare" value="update" />
This is creating HTable for your entity in HBase. Since you are getting the issue in HBaseSchemaManager
, so I recommended to create HTable yourself and remove that property from the persistence.xml
.
-Dev