Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hang connection issue when write on hbase #320

Open
attolini opened this issue Aug 14, 2019 · 0 comments
Open

Hang connection issue when write on hbase #320

attolini opened this issue Aug 14, 2019 · 0 comments

Comments

@attolini
Copy link

Hello everyone,
I'm experiencing hang connection issue when I try to write on Hbase table with a Spark Shell.
I launch the Spark Shell as indicates in README:
spark-shell --packages com.hortonworks:shc-core:1.1.1-2.1-s_2.11 --repositories https://repo.hortonworks.com/content/groups/public/ --files /etc/hadoop/conf/hbase-site.xml --jars /usr/hdp/current/phoenix-client/phoenix-server.jar

and I'm stucked with this:
scala> sc.parallelize(newData).toDF.write.options(Map(HBaseTableCatalog.tableCatalog -> cat, HBaseTableCatalog.newTable -> "5")).format("org.apache.spark.sql.execution.datasources.hbase").save()
[Stage 0:===================================================> (7 + 1) / 8]

Actually, if I interrupt the task and I run df.show, I see the new value in the table. So this is only an annoying hanging issue.
If I use /usr/hdp/current/phoenix-client/phoenix-client.jar I solve the issue. Any tips to solve this issue?
Best regards,
Alessio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant