Database Reference
In-Depth Information
Here's a sampling of the CSV file contents via an HDFS file system cat command, which dumps the contents of
the file /data/hunk/rdbms/rawdata.txt. The Linux head command limits the output to five lines:
[hadoop@hc2nn local]$ hdfs dfs -cat /data/hunk/rdbms/rawdata.txt | head -5
1995,ACURA,INTEGRA,SUBCOMPACT,1.8,4,A4,X,10.2,7,28,40,1760,202
1995,ACURA,INTEGRA,SUBCOMPACT,1.8,4,M5,X,9.6,7,29,40,1680,193
1995,ACURA,INTEGRA GS-R,SUBCOMPACT,1.8,4,M5,Z,9.4,7,30,40,1660,191
1995,ACURA,LEGEND,COMPACT,3.2,6,A4,Z,12.6,8.9,22,32,2180,251
1995,ACURA,LEGEND COUPE,COMPACT,3.2,6,A4,Z,13,9.3,22,30,2260,260
Now that some basic configuration files are set up, I can start Hunk.
Running Hunk
Hunk is started from the bin directory within the installation as the Linux hadoop account user.
Note
when you first start hunk, you must use the --accept-license option; after that, it may be omitted.
In either case, you start Hunk by using the splunk command:
[hadoop@hc2nn local]$ cd /usr/local/hunk/bin
[hadoop@hc2nn bin]$ ./splunk start --accept-license
When starting, Hunk reads its configuration files, so you need to monitor the output for errors in the
configuration files' error messages, such as:
Checking conf files for problems...
Invalid key in stanza [source::/data/hunk/rdbms/...] in /usr/local/hunk/etc/system/local/
props.conf, line 3: DELIMS (value: ", ")
If any errors occur, you can fix the configuration files and restart Hunk, as follows:
[hadoop@hc2nn bin]$ ./splunk restart
If all is well, you are presented with a message containing the URL at which to access Hunk's web-based user
interface:
The Splunk web interface is at http://hc2nn:8000
 
 
Search WWH ::




Custom Search