Hello,
we are running sandbox 2.6.5 with Spark2 v2.3.0 and SAP HANA SparkController v2.3.5 on top. The Ambari dashboard shows all services as up and running, everything seems fine:
Now, we wish to connect from our HANA database (running on IP 10.118.169.32) to Hadoop via the SparkController. We configured the connection in HANA Studio client tool using these properties:
The connection is successfully established and we can see the table that we wish to access:
However, when we run a simple select query, it just runs for about 10 minutes, until the connection is closed. No data is returned:
- internal error:Error opening the cursor for the remote database Connection has been closed.for query SELECT COUNT(*) FROM "foodmart"."customer"
In the hana_controller.log we can see that the SQL query was accepted and the execution plan is processed =>
- 19/06/0611:39:28 DEBUG NetworkUtils:InboundMessage=>'Message Type => 'PING'; Message Id => '693201651063748'; Request Id => '35d3a519-002a-0016-b033-31a660011a59';'
- 19/06/0611:39:28 DEBUG HanaMessageHandler:ReceivedRequestfrom:'172.18.0.3';MessageType=>'PING'
- 19/06/0611:39:28 DEBUG NetworkUtils:OutboundMessage=>'Message Type => 'PONG'; Message Id => '693201670667961'; Request Id => '35d3a519-002a-0016-b033-31a660011a59';'
- 19/06/0611:39:28 DEBUG NetworkUtils:InboundMessage=>'Message Type => 'START_SESSION'; Message Id => '693201689176436'; Request Id => '35d3a519-002a-0016-b033-31a660011a5b'; Session Id => '3878625230891646998-12696546365132577370';'
- 19/06/0611:39:28 DEBUG HanaMessageHandler:ReceivedRequestfrom:'172.18.0.3';MessageType=>'START_SESSION'
- 19/06/0611:39:28 INFO CommandRouterDefault:CurrentAssignments=> NONE;IncomingAssignment=>'3878625230891646998-12696546365132577370#35d3a519-002a-0016-b033-31a660011a5b'
- 19/06/0611:39:28 INFO RequestHandler:BoundMessage to Orchestrator:'35d3a519-002a-0016-b033-31a660011a5b'
- 19/06/0611:39:28 INFO RequestHandler:RetrievingBoundMessage:'35d3a519-002a-0016-b033-31a660011a5b'
- 19/06/0611:39:28 DEBUG RequestHandler:RelayingMessage to Client:'CONTINUE_SESSION'
- 19/06/0611:39:28 DEBUG NetworkUtils:OutboundMessage=>'Message Type => 'CONTINUE_SESSION'; Message Id => '693201720489241'; Request Id => '35d3a519-002a-0016-b033-31a660011a5b'; Session Id => '3878625230891646998-12696546365132577370';'
- 19/06/0611:39:28 DEBUG NetworkUtils:InboundMessage=>'Message Type => 'CONTINUE_SESSION'; Message Id => '693201726088539'; Request Id => '35d3a519-002a-0016-b033-31a660011a5b'; Session Id => '3878625230891646998-12696546365132577370';'
- 19/06/0611:39:28 DEBUG HanaMessageHandler:ReceivedRequestfrom:'172.18.0.3';MessageType=>'CONTINUE_SESSION'
- 19/06/0611:39:28 INFO CommandRouterDefault:CurrentAssignments=>3878625230891646998-12696546365132577370#35d3a519-002a-0016-b033-31a660011a5b -> Actor[akka://SAPHanaSpark/user/Controller/HanaSparkRouter/$a#1995820509]; Incoming Assignment => '3878625230891646998-12696546365132577370#35d3a519-002a-0016-b033-31a660011a5b'
- 19/06/0611:39:28 INFO RequestHandler:RetrievingBoundMessage:'35d3a519-002a-0016-b033-31a660011a5b'
- 19/06/0611:39:28 INFO HanaSparkFacade:Inside appraise session: hanaes (auth:SIMPLE)
- 19/06/0611:39:28 DEBUG Session:ConnectingUser:'root'
- 19/06/0611:39:28 DEBUG RequestHandler:RelayingMessage to Client:'SESSION_OPENED'
- 19/06/0611:39:28 DEBUG NetworkUtils:OutboundMessage=>'Message Type => 'SESSION_OPENED'; Message Id => '693201738786757'; Request Id => '35d3a519-002a-0016-b033-31a660011a5b'; Session Id => '3878625230891646998-12696546365132577370';'
- 19/06/0611:39:28 DEBUG RequestHandler:Finished executing:'START_SESSION'.Returning to the pool
- 19/06/0611:39:28 DEBUG ChannelManager:NewSessionis added:'3878625230891646998-12696546365132577370'
- 19/06/0611:39:28 DEBUG NetworkUtils:InboundMessage=>'Message Type => 'PING'; Message Id => '693201743893250'; Request Id => '35d3a519-002a-0016-b033-31a660011a5c';'
- 19/06/0611:39:28 DEBUG HanaMessageHandler:ReceivedRequestfrom:'172.18.0.3';MessageType=>'PING'
- 19/06/0611:39:28 DEBUG NetworkUtils:OutboundMessage=>'Message Type => 'PONG'; Message Id => '693201746082223'; Request Id => '35d3a519-002a-0016-b033-31a660011a5c';'
- 19/06/0611:39:28 DEBUG NetworkUtils:InboundMessage=>'Message Type => 'PING'; Message Id => '693201748509338'; Request Id => '35d3a519-002a-0016-b033-31a660011a5d';'
- 19/06/0611:39:28 DEBUG HanaMessageHandler:ReceivedRequestfrom:'172.18.0.3';MessageType=>'PING'
- 19/06/0611:39:28 DEBUG NetworkUtils:OutboundMessage=>'Message Type => 'PONG'; Message Id => '693201750304135'; Request Id => '35d3a519-002a-0016-b033-31a660011a5d';'
- 19/06/0611:39:28 DEBUG NetworkUtils:InboundMessage=>'Message Type => 'PING'; Message Id => '693201752596927'; Request Id => '35d3a519-002a-0016-b033-31a660011a5e';'
- 19/06/0611:39:28 DEBUG HanaMessageHandler:ReceivedRequestfrom:'172.18.0.3';MessageType=>'PING'
- 19/06/0611:39:28 DEBUG NetworkUtils:OutboundMessage=>'Message Type => 'PONG'; Message Id => '693201753461377'; Request Id => '35d3a519-002a-0016-b033-31a660011a5e';'
- 19/06/0611:39:28 DEBUG NetworkUtils:InboundMessage=>'Message Type => 'QUERY_EXECUTE'; Message Id => '693201755190134'; Request Id => '35d3a519-002a-0016-b033-31a660011a5f'; Session Id => '3878625230891646998-12696546365132577370';'
- 19/06/0611:39:28 DEBUG HanaMessageHandler:ReceivedRequestfrom:'172.18.0.3';MessageType=>'QUERY_EXECUTE'
- 19/06/0611:39:28 INFO CommandRouterDefault:CurrentAssignments=> NONE;IncomingAssignment=>'3878625230891646998-12696546365132577370#35d3a519-002a-0016-b033-31a660011a5f'
- 19/06/0611:39:28 INFO RequestHandler:BoundMessage to Orchestrator:'35d3a519-002a-0016-b033-31a660011a5f'
- 19/06/0611:39:28 INFO RequestHandler:RetrievingBoundMessage:'35d3a519-002a-0016-b033-31a660011a5f'
- 19/06/0611:39:28 DEBUG HanaExecPlan:<?xml version="1.0"?><hana:queryplan xmlns:hana="http://www.sap.com/hana"><select><sql>SELECT COUNT(*) AS CA_10261569202013848859 FROM "foodmart"."customer""Hadoop_customer"</sql><typeInfo><column><name>COL0</name><type>4</type></column></typeInfo><parameters/><hints/><relocators/></select></hana:queryplan>
- 19/06/0611:39:28 DEBUG RequestHandler:ChosenEngine ID:'sparksql'
- 19/06/0611:39:28 DEBUG DataRouteRegistry:RegisteringQueryExecutionwith requestId:'147BF43D222C974CC039F0B3C6E6356C'
- 19/06/0611:39:28 INFO AsyncExecutor:RunningwithUserPrivilege'root'
- 19/06/0611:39:28 DEBUG RequestHandler:UnblockedRelay
- 19/06/0611:39:28 DEBUG RequestHandler:RelayingMessage to Client:'QUERY_ACCEPTED'
- 19/06/0611:39:28 DEBUG NetworkUtils:OutboundMessage=>'Message Type => 'QUERY_ACCEPTED'; Message Id => '693201797735164'; Request Id => '35d3a519-002a-0016-b033-31a660011a5f'; Session Id => '3878625230891646998-12696546365132577370';'
- 19/06/0611:39:28 INFO HanaSparkFacade:HanaSelectTask(SQL): SELECT COUNT(*) AS CA_10261569202013848859 FROM `foodmart`.`customer``Hadoop_customer`
- 19/06/0611:39:29 INFO SparkCompositeCatalog:Lookingfor table:'foodmart.customer'
- 19/06/0611:39:30 DEBUG HanaHiveSQLContext: resolveRelations23 - hti.table ='customer'; rel =''SubqueryAlias customer
- +-'UnresolvedCatalogRelation `foodmart`.`customer`, org.apache.hadoop.hive.ql.io.orc.OrcSerde
- '
- 19/06/0611:39:30 DEBUG DistributedDataSetFactoryImpl:Query plan:
- 'Project ['COUNT(1) AS CA_10261569202013848859#39]
- +-'SubqueryAlias Hadoop_customer
- +- 'SubqueryAlias customer
- +-'SubqueryAlias customer
- +- 'UnresolvedCatalogRelation`foodmart`.`customer`, org.apache.hadoop.hive.ql.io.orc.OrcSerde
- 19/06/0611:39:30 INFO SparkFacade$anon$1:Created broadcast 0from
- 19/06/0611:39:31 INFO SparkFacade$anon$1:Starting job: transferDatafromPartitions at SparkFacade.scala:299
- 19/06/0611:39:31 INFO SparkFacade$anon$1:Created broadcast 1from broadcast at DAGScheduler.scala:1039
- 19/06/0611:39:33 INFO SparkFacade$anon$1:Created broadcast 2from broadcast at DAGScheduler.scala:1039
- 19/06/0611:39:35 DEBUG SmartReverseProxyHandler:StartingChannelTag:'sandbox-hdp.hortonworks.com:49372'
- 19/06/0611:39:35 DEBUG SmartReverseProxyHandler:MessageType=>'DATA_SOURCE_LOCATION'
- 19/06/0611:39:35 DEBUG DataRouteRegistry:RegisteringEndPointfor requestId:'147BF43D222C974CC039F0B3C6E6356C'('3878625230891646998-12696546365132577370','35d3a519-002a-0016-b033-31a660011a5f'), transferId:'Result:0'
- 19/06/0611:39:35 DEBUG NetworkUtils:InboundMessage=>'Message Type => 'DATA_SOURCE_LOCATION'; Message Id => '693208692846518'; Request Id => '35d3a519-002a-0016-b033-31a660011a5f'; Session Id => '3878625230891646998-12696546365132577370';'
- 19/06/0611:39:35 DEBUG HanaMessageHandler:ReceivedRequestfrom:'sandbox-hdp.hortonworks.com';MessageType=>'DATA_SOURCE_LOCATION'
- 19/06/0611:39:35 INFO CommandRouterDefault:CurrentAssignments=>3878625230891646998-12696546365132577370#35d3a519-002a-0016-b033-31a660011a5f -> Actor[akka://SAPHanaSpark/user/Controller/HanaSparkRouter/$b#-336533065]; Incoming Assignment => '3878625230891646998-12696546365132577370#35d3a519-002a-0016-b033-31a660011a5f'
- 19/06/0611:39:35 INFO RequestHandler:RetrievingBoundMessage:'35d3a519-002a-0016-b033-31a660011a5f'
- 19/06/0611:39:35 INFO RequestHandler:ForwardingDataVent:'QUERY_DATA_SOURCE';Direction:'0'
- 19/06/0611:39:35 DEBUG RequestHandler:DataTransferEndPoint:'172.18.0.2:7861'
- 19/06/0611:39:35 DEBUG RequestHandler:RelayingMessage to Client:'QUERY_DATA_SOURCE'
- 19/06/0611:39:35 DEBUG NetworkUtils:OutboundMessage=>'Message Type => 'QUERY_DATA_SOURCE'; Message Id => '693208699630324'; Request Id => '35d3a519-002a-0016-b033-31a660011a5f'; Session Id => '3878625230891646998-12696546365132577370';'
- 19/06/0611:49:35 DEBUG HanaMessageHandler:Channelis unregistered...Closing all sessions
- 19/06/0611:49:35 DEBUG ChannelManager:ClosingAllSessions
- 19/06/0611:49:35 DEBUG ChannelManager:Sessionis closed:'3878625230891646998-12696546365132577370'
We need help to figure out, why the result is not coming back. This is our first Hadoop installation, we do not know what the root cause could possibly be. Maybe there is an issue with the IP or port that is mentioned in line "Data Transfer End Point"?
Your advice on how to pinpoint and resolve the root cause would be greatly appreciated.
Thank you very much and best regards,
Bernhard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.