Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Getting 103 error when trying to connect to phoenix from a spring boot project in a kerberized cluster.

avatar
New Member

I am including phoenix, hbase and zookeeper jars in the project. I have placed the configuration xml files (hbase-site.xml, core-site.xml and hdfs-site.xml) in the src directory(also tried src/main/resources) where all the java files are. This worked for me in a simple java project, but i am unable to make it hit the config files in a spring boot project. Can anyone help?

[Request processing failed; nested exception is java.sql.SQLException: ERROR 103 (08004): Unable to establish connection.] with root cause java.lang.ClassNotFoundException: io.netty.channel.EventLoopGroup at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_131] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_131] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) ~[na:1.8.0_131] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_131] at java.lang.Class.forName0(Native Method) ~[na:1.8.0_131] at java.lang.Class.forName(Class.java:348) ~[na:1.8.0_131] at org.apache.hadoop.conf.Configuration.getClassByNameOrNull(Configuration.java:2180) ~[Table-0.0.1-SNAPSHOT.jar:0.0.1

public Connection connect() throws SQLException, ClassNotFoundException {
		Class.forName("org.apache.phoenix.jdbc.PhoenixDriver");
		Connection con = DriverManager.getConnection("jdbc:phoenix:172.22.2.77,172.22.2.79,172.22.2.80:2181:/hbase-secure:[email protected]:/home/rowanadmin/rowanadmin.keytab");	
		System.out.println("success");
	return con;
}
1 ACCEPTED SOLUTION

avatar
New Member

I got this fixed. Had to add a dependency for netty-all in the pom file.

View solution in original post

1 REPLY 1

avatar
New Member

I got this fixed. Had to add a dependency for netty-all in the pom file.