Professional Documents
Culture Documents
sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
19/09/24 14:25:46 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your
platform... using builtin-java classes where applicable
Starting namenodes on [localhost]
localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-rr-namenode-ubuntu.out
localhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-rr-datanode-ubuntu.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/logs/hadoop-rr-secondarynamenode-
ubuntu.out
19/09/24 14:27:06 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your
platform... using builtin-java classes where applicable
starting yarn daemons
starting resourcemanager, logging to /usr/local/hadoop/logs/yarn-rr-resourcemanager-ubuntu.out
localhost: starting nodemanager, logging to /usr/local/hadoop/logs/yarn-rr-nodemanager-ubuntu.out
rr@ubuntu:~$ jps
3536 SecondaryNameNode
3249 NameNode
4099 Jps
3371 DataNode
3757 ResourceManager
3887 NodeManager
rr@ubuntu:~$ hdfs dfs -ls
19/09/24 14:28:45 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your
platform... using builtin-java classes where applicable
Found 3 items
drwxr-xr-x - rr supergroup 0 2019-07-23 14:37 dir11
drwxr-xr-x - rr supergroup 0 2019-07-23 15:13 gayathri
drwxr-xr-x - rr supergroup 0 2019-07-30 15:21 testfile.txt
rr@ubuntu:~$ hdfs dfs -cat testfile.txt
19/09/24 14:29:59 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your
platform... using builtin-java classes where applicable
cat: `testfile.txt': Is a directory
rr@ubuntu:~$ hdfs dfs -ls /dir11
19/09/24 14:30:45 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your
platform... using builtin-java classes where applicable
Found 1 items
-rwx------ 1 rr supergroup 117 2019-03-05 15:05 /dir11/sample2.txt
rr@ubuntu:~$ hdfs dfs -cat /dir11/sample2.txt
19/09/24 14:31:10 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your
platform... using builtin-java classes where applicable
it does not support writing of data into the files using multiple writers.the best for reading data either
from end.
rr@ubuntu:~$ gedit emp.txt
rr@ubuntu:~$ hdfs dfs -put empx.txt hdfs://localhost:54310/dir11
19/09/24 14:33:03 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your
platform... using builtin-java classes where applicable
put: `empx.txt': No such file or directory
rr@ubuntu:~$ hdfs dfs -put emp.txt hdfs://localhost:54310/dir11
19/09/24 14:33:37 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your
platform... using builtin-java classes where applicable
rr@ubuntu:~$ hdfs dfs -ls /dir11
19/09/24 14:34:45 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your
platform... using builtin-java classes where applicable
Found 2 items
-rw-r--r-- 1 rr supergroup 43 2019-09-24 14:33 /dir11/emp.txt
-rwx------ 1 rr supergroup 117 2019-03-05 15:05 /dir11/sample2.txt
rr@ubuntu:~$
rr@ubuntu:~$
rr@ubuntu:~$ pig -x local
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-
1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hbase/lib/slf4j-log4j12-
1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
19/09/24 14:35:30 INFO pig.ExecTypeProvider: Trying ExecType : LOCAL
19/09/24 14:35:30 INFO pig.ExecTypeProvider: Picked LOCAL as the ExecType
2019-09-24 14:35:30,823 [main] INFO org.apache.pig.Main - Apache Pig version 0.16.0 (r1746530)
compiled Jun 01 2016, 23:10:49
2019-09-24 14:35:30,830 [main] INFO org.apache.pig.Main - Logging error messages to:
/home/rr/pig_1569364530821.log
2019-09-24 14:35:30,956 [main] INFO org.apache.pig.impl.util.Utils - Default bootup file
/home/rr/.pigbootup not found
2019-09-24 14:35:32,706 [main] INFO org.apache.hadoop.conf.Configuration.deprecation -
mapred.job.tracker is deprecated. Instead, use mapreduce.jobtracker.address
2019-09-24 14:35:32,714 [main] INFO org.apache.hadoop.conf.Configuration.deprecation -
fs.default.name is deprecated. Instead, use fs.defaultFS
2019-09-24 14:35:32,755 [main] INFO
org.apache.pig.backend.hadoop.executionengine.HExecutionEngine - Connecting to hadoop file
system at: file:///
2019-09-24 14:35:33,386 [main] INFO org.apache.hadoop.conf.Configuration.deprecation -
io.bytes.per.checksum is deprecated. Instead, use dfs.bytes-per-checksum
2019-09-24 14:35:33,587 [main] INFO org.apache.pig.PigServer - Pig Script ID for the session: PIG-
default-865c4ad5-0f14-4317-bd8f-79b37a45ccd6
2019-09-24 14:35:33,594 [main] WARN org.apache.pig.PigServer - ATS is disabled since
yarn.timeline-service.enabled set to false
grunt> a1=LOAD 'hdfs://localhost:54310/dir11/emp.txt USING PigStorage(',') AS
(id:int,name:chararray);
2019-09-24 14:37:21,392 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error
during parsing. Encountered " <PATH> "a1=LOAD "" at line 1, column 1.
Was expecting one of:
<EOF>
"cat" ...
"clear" ...
"fs" ...
"sh" ...
"cd" ...
"cp" ...
"copyFromLocal" ...
"copyToLocal" ...
"dump" ...
"\\d" ...
"describe" ...
"\\de" ...
"aliases" ...
"explain" ...
"\\e" ...
"help" ...
"history" ...
"kill" ...
"ls" ...
"mv" ...
"mkdir" ...
"pwd" ...
"quit" ...
"\\q" ...
"register" ...
"rm" ...
"rmf" ...
"set" ...
"illustrate" ...
"\\i" ...
"run" ...
"exec" ...
"%default" ...
"%declare" ...
"scriptDone" ...
"" ...
"" ...
<EOL> ...
";" ...
-----------------------
Success!
Input(s):
Successfully read 4 records (43 bytes) from: "hdfs://localhost:54310/dir11/emp.txt"
Output(s):
Successfully stored 4 records in: "file:/tmp/temp1989380716/tmp1997065368"
Counters:
Total records written : 4
Total bytes written : 0
Spillable Memory Manager spill count : 0
Total bags proactively spilled: 0
Total records proactively spilled: 0
Job DAG:
job_local1655394155_0001
-----------------------
Success!
Input(s):
Successfully read 4 records (86 bytes) from: "hdfs://localhost:54310/dir11/emp.txt"
Output(s):
Successfully stored 2 records in: "file:/tmp/temp1989380716/tmp-2053029601"
Counters:
Total records written : 2
Total bytes written : 0
Spillable Memory Manager spill count : 0
Total bags proactively spilled: 0
Total records proactively spilled: 0
Job DAG:
job_local1084196401_0002
-----------------------
Success!
Input(s):
Successfully read 4 records (258 bytes) from: "hdfs://localhost:54310/dir11/emp.txt"
Output(s):
Successfully stored 4 records in: "file:/tmp/temp1989380716/tmp-123884449"
Counters:
Total records written : 4
Total bytes written : 0
Spillable Memory Manager spill count : 0
Total bags proactively spilled: 0
Total records proactively spilled: 0
Job DAG:
job_local231953609_0003
-----------------------
Success!
Input(s):
Successfully read 4 records (344 bytes) from: "hdfs://localhost:54310/dir11/emp.txt"
Output(s):
Successfully stored 4 records in: "file:/tmp/temp1989380716/tmp770682788"
Counters:
Total records written : 4
Total bytes written : 0
Spillable Memory Manager spill count : 0
Total bags proactively spilled: 0
Total records proactively spilled: 0
Job DAG:
job_local234157501_0004
-----------------------
Success!
Input(s):
Successfully read 4 records (430 bytes) from: "hdfs://localhost:54310/dir11/emp.txt"
Output(s):
Successfully stored 4 records in: "file:/tmp/temp1989380716/tmp261580045"
Counters:
Total records written : 4
Total bytes written : 0
Spillable Memory Manager spill count : 0
Total bags proactively spilled: 0
Total records proactively spilled: 0
Job DAG:
job_local1713093984_0005
-----------------------
Success!
Output(s):
Successfully stored 1 records in: "file:/tmp/temp1989380716/tmp-586598137"
Counters:
Total records written : 1
Total bytes written : 0
Spillable Memory Manager spill count : 0
Total bags proactively spilled: 0
Total records proactively spilled: 0
Job DAG:
job_local961983538_0006
-----------------------
-----------------------
Success!
Input(s):
Successfully read 4 records (301 bytes) from: "hdfs://localhost:54310/dir11/emp.txt"
Output(s):
Successfully stored 4 records in: "file:/tmp/temp1989380716/tmp-1327869809"
Counters:
Total records written : 4
Total bytes written : 0
Spillable Memory Manager spill count : 0
Total bags proactively spilled: 0
Total records proactively spilled: 0
Job DAG:
job_local2027325755_0007 -> job_local2104222054_0008,
job_local2104222054_0008 -> job_local2057231340_0009,
job_local2057231340_0009
-----------------------
Input(s):
Successfully read 4 records (387 bytes) from: "hdfs://localhost:54310/dir11/emp.txt"
Output(s):
Successfully stored 4 records (43 bytes) in: "hdfs://localhost:54310/dir11/stu"
Counters:
Total records written : 4
Total bytes written : 43
Spillable Memory Manager spill count : 0
Total bags proactively spilled: 0
Total records proactively spilled: 0
Job DAG:
job_local1377189287_0010