I have a Hive client (written in Java) that worked just fine with the Global Instance of Cosmos at FIWARE Lab. However, it is not working anymore, it seems the client cannot connect (it times out).
Has anything changed on the server-side?
I have a Hive client (written in Java) that worked just fine with the Global Instance of Cosmos at FIWARE Lab. However, it is not working anymore, it seems the client cannot connect (it times out).
Has anything changed on the server-side?
Copyright © 2021 Jogjafile Inc.
This is because the Global Instance of Cosmos at FIWARE Lab has been upgraded and now HiveServer2 is being run on the server side of Hive. Thus, everything in your code is still valid except for the following:
org.apache.hive.jdbc.HiveDriverinstead oforg.apache.hadoop.hive.jdbc.HiveDriver.jdbc:hivetojdbc:hive2I mean, the code should finally have the following aspect:
Regarding the dependencies, if using for instance Maven, your
pom.xmlshould contain something like:Finally, if using a JSON-like format, you will need to add the JSON serde. From the Hive CLI this is pretty simple:
From you Hive client, just execute an update sentence with the above command.