gRPC Java client setup
Install software
You’ll need to install the following software if it is not already installed:
Add dependencies
To begin, add the required dependency to your project pom.xml
:
<dependencies>
<dependency>
<groupId>io.stargate.grpc</groupId>
<artifactId>grpc-proto</artifactId>
<version>1.0.41</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
<version>1.41.0</version>
</dependency>
</dependencies>
If you do not add it, you will observe the following error:
No functional channel service provider found.
Try adding a dependency on the grpc-okhttp, grpc-netty, or grpc-netty-shaded artifact.