Member since
11-27-2017
18
Posts
0
Kudos Received
0
Solutions
03-23-2018
03:20 AM
Thank you ,that works!!
... View more
03-12-2018
06:25 AM
After upating result set still getting the same error. java.sql.SQLFeatureNotSupportedException: [Simba][JDBC](10220) Driver not capable. public String list() throws SQLException, ClassNotFoundException {
List<Biler> bilers = new ArrayList<Biler>();
final String DRIVER_CLASS = "com.cloudera.impala.jdbc4.Driver";
final String CONNECTION_URL = "jdbc:impala://host_name:21050;AuthMech=0;";
Class.forName(DRIVER_CLASS);
Biler biler = null;
Connection connection = DriverManager.getConnection(CONNECTION_URL);
Statement stmt = connection.createStatement( ResultSet.TYPE_FORWARD_ONLY,
ResultSet.CONCUR_READ_ONLY);
ResultSet rs =stmt.executeQuery("select senderid ,procdate ,count(*) as"
+ " count1 from smsc.smsc_data_par group by senderid , procdate");
try{
while (rs.next()) {
biler = new Biler();
biler.setId(rs.getString("senderid"));
biler.setName(rs.getString("procdate"));
biler.setValue(rs.getString("count1"));
bilers.add(biler);
}
}finally{
if (rs != null){
try{
rs.close();
}catch(SQLException e){}
}
if(connection !=null){
try{
connection.close();
}catch(SQLException e){}
}
if(stmt != null){
try{
stmt.close();
}catch(SQLException e ){}
}
}
Gson gson = new Gson();
return gson.toJson(bilers);
}
} Any suggestion how to resolve this issue ?
... View more
02-08-2018
02:19 PM
What directory is your jar in? You can check Hive Auxilliary Jars Directory under Hive->Configuration
... View more
02-02-2018
09:45 PM
1 Kudo
I believe you meant Spark "Thrift Server" @kgautam https://community.hortonworks.com/articles/29928/using-spark-to-virtually-integrate-hadoop-with-ext.html http://spark.apache.org/docs/latest/sql-programming-guide.html#running-the-thrift-jdbcodbc-server The alternative would be to use Apache Livy http://livy.apache.org/docs/latest/programmatic-api.html
... View more
11-29-2017
02:02 AM
Can you please mention the steps?
... View more