AccountHadoopURL Property
The URL of the Hadoop WebHDFS server.
Syntax
cloudstorage.getAccountHadoopURL([callback]) cloudstorage.setAccountHadoopURL( accountHadoopURL, [callback])
Default Value
""
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for the getAccountHadoopURL([callback]) method is defined as:
function(err, data){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'data' is the value returned by the method.
The callback for the setAccountHadoopURL([callback]) method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
The URL of the Hadoop WebHDFS server.
This property specifies the URL of the Hadoop WebHDFS server to make requests against. It must be set when ServiceProvider is set to spHadoopDFS (10).
A full WebHDFS URL looks like http[s]://<HOST>:<PORT>/webhdfs/v1. The class will automatically append /webhdfs/v1 when making requests (if necessary).
The class automatically detects whether to secure the connection using SSL/TLS based on whether the value begins with http (not secured) or https (secured).
Data Type
String