Details
-
Improvement
-
Status: Awaiting Feedback
-
Low
-
Resolution: Unresolved
-
None
Description
Currently, hadoop cql3 library does not support setting OutputNativePort. It always uses the default port 9042. If Cassandra cluster uses a different native_transport_port, this won't work. There is a setInputNativePort but no setOutputNativePort.
This ticket is to add this support.
During testing, we found out that storage_port and ssl_storage_port also need to be set to customized one. Here is our current workaround:
hadoopConfig.set("cassandra.output.native.port", nonDefaultNativePort)
System.setProperty("cassandra.storage_port", nonStoragePort)
System.setProperty("cassandra.ssl_storage_port", nonSSLStoragePort)