hdfs::native::hdfsBuilderSetNameNode
[−]
[src]
pub unsafe extern fn hdfsBuilderSetNameNode(bld: *mut hdfsBuilder, host: *const c_char)
Set the HDFS NameNode to connect to.
Params
- bld - The HDFS builder
- nn - The NameNode to use. If the string given is 'default', the default NameNode
configuration will be used (from the XML configuration files).
If
NULL
is given, a LocalFileSystem will be created. If the string starts with a protocol type such asfile://
orhdfs://
, this protocol type will be used. If not, thehdfs://
protocol type will be used. You may specify a NameNode port in the usual way by passing a string of the formathdfs://<hostname>:<port>
. Alternately, you may set the port with hdfsBuilderSetNameNodePort. However, you must not pass the port in two different ways.