3 Answers
Please follow these instructions :
https://cloud.google.com/bigtable/docs/quickstart-hbase
- once you have upgraded java, this should work.
First do this –
sudo apt-get update
sudo apt-get install openjdk-8-jdk-headless
export JAVA_HOME=$(update-alternatives –list java | tail -1 | sed -E ‘s//bin/java//’)
then – (make sure the Cloud Big Table API is enabled)
git clone https://github.com/GoogleCloudPlatform/cloud-bigtable-examples.git
cd cloud-bigtable-examples/quickstart
./quickstart.sh
it should work after this.
For me the issue was also that JAVA_HOME pointed to java11.
I did:
– update-alternatives –list java (listed java11 and java8 paths)
- update-alternatives –set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
Then running ./quickstart.sh works
This method is working, thanks Vaibhav!
This worked for me too.