Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

Reply To: Storm cannot connect to HDFS in HA mode

$
0
0

Hi Max/Tom – apologies for the late reply, however as long as the cluster hdfs-site.xml and core-site.xml is included in the topology during build, the nameservice ID can be used in the HDFSBolt initialization code and it will resolve to the active NameNode.

HdfsBolt bolt = new HdfsBolt().withFsURL(“hdfs://myNameserviceID”)HdfsBolt bolt = new HdfsBolt()
.withFsURL(“hdfs://myNameserviceID”)
.withFileNameFormat(fileNameformat)
.withRecordFormat(format)
.withRotationPolicy(rotationPolicy)
.withSynPolicy(syncPolicy);

Hope this helps,
Koelli


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>