Database Reference
In-Depth Information
To test webhdfs Hue access, use the Hue LISTSTATUS function. You can test access to the webhdfs Rest interface
using a general URL of the form:
curl -i http://<server>:<port>/webhdfs/v1/tmp?op=LISTSTATUS
This is where the server is the Name Node server name and the port is the port number of the name node. The
command is passed using the curl command, which retrieves information from the URL. The -I option causes
header information to be included in the output. So the full command is:
[hadoop@hc1nn ~]$ curl -i http://hc1nn:50070/webhdfs/v1/tmp?op=LISTSTATUS
And the trimmed output looks like this:
HTTP/1.1 200 OK
Cache-Control: no-cache
Expires: Tue, 05 Aug 2014 07:03:42 GMT
Date: Tue, 05 Aug 2014 07:03:42 GMT
Pragma: no-cache
Expires: Tue, 05 Aug 2014 07:03:42 GMT
Date: Tue, 05 Aug 2014 07:03:42 GMT
Pragma: no-cache
Content-Type: application/json
Content-Length: 1167
Server: Jetty(6.1.26.cloudera.2)
{"FileStatuses":{"FileStatus":[
{"accessTime":0,"blockSize":0,"group":"hadoop","length":0,"modificationTime":1406363236301,"owner":"
hadoop","pathSuffix":"flume","permission":"755","replication":0,"type":"DIRECTORY"},
.................................
The output is the same as an HDFS ls command on the /tmp directory. If you get this type of output, then you
know that your Hue webhdfs Rest interface is working and so Hue should work for you.
Running Hue
It should be possible to connect to the Hue web-based user interface at this point. Any log-based errors encountered
in your installation should have been resolved. Given that, in my example, Hue was installed on the Centos Linux
server hc1nn, I can access the Hue web interface via the URL, http://hc1nn:8888/ . For your installation, you simply
substitute your own server name.
On your first login, you will be prompted to create an account and guided through further steps by the Quick Start
wizard. The wizard displays any configuration problems it encounters, as shown in Figure 7-1 .
 
Search WWH ::




Custom Search