MapReduce运算过程日志

[ec2-user@ip-172-31-27-192 tmp]$ hadoop jar /tmp/hadoop-mapreduce-examples-2.6.0.jar wordcount s3://testcopy/testFile.txt s3://testcopy/output
15/12/24 07:05:00 INFO fs.EmrFileSystem: Consistency disabled, using com.amazon.ws.emr.hadoop.fs.s3n.S3NativeFileSystem as filesystem implementation
15/12/24 07:05:01 INFO metrics.MetricsSaver: MetricsConfigRecord disabledInCluster: false instanceEngineCycleSec: 60 clusterEngineCycleSec: 60 disableClusterEngine: false maxMemoryMb: 3072 maxInstanceCount: 500 lastModified: 1450939582964
15/12/24 07:05:01 INFO metrics.MetricsSaver: Created MetricsSaver j-2WP1W3KCH2NUP:i-23c8b31b:RunJar:11865 period:60 /mnt/var/em/raw/i-23c8b31b_20151224_RunJar_11865_raw.bin
15/12/24 07:05:01 INFO client.RMProxy: Connecting to ResourceManager at https://www.360docs.net/doc/a416095642.html,pute.internal/172.31.27.192:8032
15/12/24 07:05:02 INFO input.FileInputFormat: Total input paths to process : 1
15/12/24 07:05:02 INFO lzo.GPLNativeCodeLoader: Loaded native gpl library
15/12/24 07:05:02 INFO lzo.LzoCodec: Successfully loaded & initialized native-lzo library [hadoop-lzo rev 41f4e6be3ac5d6676a3464f77de79a33e8fdd9f3]
15/12/24 07:05:02 INFO mapreduce.JobSubmitter: number of splits:1
15/12/24 07:05:03 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1450939576718_0001
15/12/24 07:05:03 INFO impl.YarnClientImpl: Submitted application application_1450939576718_0001
15/12/24 07:05:03 INFO mapreduce.Job: The url to track the job: https://www.360docs.net/doc/a416095642.html,pute.internal:20888/proxy/application_1450939576718_0001/
15/12/24 07:05:03 INFO mapreduce.Job: Running job: job_1450939576718_0001
15/12/24 07:05:12 INFO mapreduce.Job: Job job_1450939576718_0001 running in uber mode : false
15/12/24 07:05:12 INFO mapreduce.Job: map 0% reduce 0%
15/12/24 07:05:21 INFO mapreduce.Job: map 100% reduce 0%
15/12/24 07:05:30 INFO mapreduce.Job: map 100% reduce 29%
15/12/24 07:05:31 INFO mapreduce.Job: map 100% reduce 43%
15/12/24 07:05:32 INFO mapreduce.Job: map 100% reduce 57%
15/12/24 07:05:33 INFO mapreduce.Job: map 100% reduce 71%
15/12/24 07:05:37 INFO mapreduce.Job: map 100% reduce 86%
15/12/24 07:05:38 INFO mapreduce.Job: map 100% reduce 100%
15/12/24 07:05:39 INFO mapreduce.Job: Job job_1450939576718_0001 completed successfully
15/12/24 07:05:39 INFO mapreduce.Job: Counters: 54
File System Counters
FILE: Number of bytes read=155
FILE: Number of bytes written=898493
FILE: Number of read operations=0
FILE: Number of large read operations=0
FILE: Number of write operations=0
HDFS: Number of bytes read=91
HDFS: Number of bytes written=0
HDFS: Number of read operations=1
HDFS: Number of large read operations=0
HDFS: Number of write operations=0
S3: Number of bytes read=15
S3: Number of bytes written=18


S3: Number of read operations=0
S3: Number of large read operations=0
S3: Number of write operations=0
Job Counters
Launched map tasks=1
Launched reduce tasks=7
Data-local map tasks=1
Total time spent by all maps in occupied slots (ms)=38592
Total time spent by all reduces in occupied slots (ms)=588048
Total time spent by all map tasks (ms)=6432
Total time spent by all reduce tasks (ms)=49004
Total vcore-seconds taken by all map tasks=6432
Total vcore-seconds taken by all reduce tasks=49004
Total megabyte-seconds taken by all map tasks=9262080
Total megabyte-seconds taken by all reduce tasks=141131520
Map-Reduce Framework
Map input records=1
Map output records=1
Map output bytes=20
Map output materialized bytes=127
Input split bytes=91
Combine input records=1
Combine output records=1
Reduce input groups=1
Reduce shuffle bytes=127
Reduce input records=1
Reduce output records=1
Spilled Records=2
Shuffled Maps =7
Failed Shuffles=0
Merged Map outputs=7
GC time elapsed (ms)=863
CPU time spent (ms)=5310
Physical memory (bytes) snapshot=2444853248
Virtual memory (bytes) snapshot=23579447296
Total committed heap usage (bytes)=3100114944
Shuffle Errors
BAD_ID=0
CONNECTION=0
IO_ERROR=0
WRONG_LENGTH=0
WRONG_MAP=0
WRONG_REDUCE=0
File Input Format Counters
Bytes Read=15
File Output Format Counters
Bytes Written=18



----------------------------------------------------------------






fs.defaultFS
hdfs://https://www.360docs.net/doc/a416095642.html,pute.internal:8020





hadoop.security.authentication
simple









hadoop.proxyuser.httpfs.hosts
*


hadoop.proxyuser.httpfs.groups
hudson,testuser,root,hadoop,jenkins,oozie,httpfs,hue,users






hadoop.proxyuser.hue.hosts
*


hadoop.proxyuser.hue.groups
*



hadoop.proxyuser.oozie.hosts


*


hadoop.proxyuser.oozie.groups
*





https://www.360docs.net/doc/a416095642.html,pression.codecs
https://www.360docs.net/doc/a416095642.html,press.GzipCodec,https://www.360docs.net/doc/a416095642.html,press.DefaultCodec,https://www.360docs.net/doc/a416095642.html,press.BZip2Codec,https://www.360docs.net/doc/a416095642.html,press.SnappyCodec,https://www.360docs.net/doc/a416095642.html,pression.lzo.LzoCodec,https://www.360docs.net/doc/a416095642.html,pression.lzo.LzopCodec



https://www.360docs.net/doc/a416095642.html,pression.codec.lzo.class
https://www.360docs.net/doc/a416095642.html,pression.lzo.LzoCodec




fs.s3.buffer.dir
/mnt/s3,/mnt1/s3



fs.s3.impl
com.amazon.ws.emr.hadoop.fs.EmrFileSystem



fs.s3n.impl
com.amazon.ws.emr.hadoop.fs.EmrFileSystem



ipc.client.connect.max.retries.on.timeouts
5



hadoop.security.key.default.bitlength
256



hadoop.proxyuser.hadoop.groups
*



fs.s3n.endpoint
https://www.360docs.net/doc/a416095642.html,



hadoop.tmp.dir
/mnt/var/lib/hadoop/tmp



fs.s3.buckets.create.region
cn-north-1



hadoop.proxyuser.hadoop.hosts
*



hadoop.security.key.provider.path
kms://http@https://www.360docs.net/doc/a416095642.html,pute.internal:16000/kms



io.file.buffer.size
65536



fs.s3bfs.impl
org.apache.hadoop.fs.s3.S3FileSystem






-------------------------------------------------------------

[ec2-user@ip-172-31-23-177 tmp]$ java -jar testCred.jar
Exception in thread "main" com.amazonaws.AmazonClientException: Cannot load the credentials from the credential profiles file. Please make sure that your credentials file is at the correct location (~/.aws/credentials), and is in valid format.
at AwsCredential.main(AwsCredential.java:37)
Caused by: https://www.360docs.net/doc/a416095642.html,ng.IllegalArgumentException: AWS credential profiles file not found in the given path: /home/ec2-user/.aws/credentials
at com.amazonaws.auth.profile.internal.ProfilesConfigFileLoader.loadProfiles(ProfilesConfigFileLoader.java:45)
at com.amazonaws.auth.profile.ProfilesConfigFile.loadProfiles(ProfilesConfigFile.java:194)
at com.amazonaws.auth.profile.ProfilesConfigFile.(ProfilesConfigFile.java:119)

at com.amazonaws.auth.profile.ProfilesConfigFile.(ProfilesConfigFile.java:93)
at com.amazonaws.auth.profile.ProfileCredentialsProvider.getCredentials(ProfileCredentialsProvider.java:149)
at AwsCredential.main(AwsCredential.java:34)
[ec2-user@ip-172-31-23-177 tmp]$ java -jar testCred.jar
Exception in thread "main" com.amazonaws.AmazonClientException: Cannot load the credentials from the credential profiles file. Please make sure that your credentials file is at the correct location (~/.aws/credentials), and is in valid format.
at AwsCredential.main(AwsCredential.java:42)
Caused by: com.amazonaws.AmazonClientException: The requested metadata is not found at http://169.254.169.254/latest/meta-data/iam/security-credentials/
at com.amazonaws.internal.EC2MetadataClient.readResponse(EC2MetadataClient.java:111)
at com.amazonaws.internal.EC2MetadataClient.readResource(EC2MetadataClient.java:92)
at com.amazonaws.internal.EC2MetadataClient.getDefaultCredentials(EC2MetadataClient.java:55)
at com.amazonaws.auth.InstanceProfileCredentialsProvider.loadCredentials(InstanceProfileCredentialsProvider.java:186)
at com.amazonaws.auth.InstanceProfileCredentialsProvider.getCredentials(InstanceProfileCredentialsProvider.java:124)
at AwsCredential.main(AwsCredential.java:37)




Exception in thread "main" com.amazonaws.AmazonClientException: Cannot load the credentials from the credential profiles file. Please make sure that your credentials file is at the correct location (~/.aws/credentials), and is in valid format.
at AwsCredential.main(AwsCredential.java:43)
Caused by: com.amazonaws.AmazonClientException: Unable to load AWS credentials from any provider in the chain
at com.amazonaws.auth.AWSCredentialsProviderChain.getCredentials(AWSCredentialsProviderChain.java:117)
at AwsCredential.main(AwsCredential.java:38)


-----------------------------------------------------------------------------------------------------------------


{
"Code" : "Success",
"LastUpdated" : "2015-12-24T15:12:55Z",
"Type" : "AWS-HMAC",
"AccessKeyId" : "ASIAOAI7OK7JYSJ75X6Q",
"SecretAccessKey" : "s/UVy7+QmQgFKPLUvmx5FR9YNCudcmigAsjLqoCD",
"Token" : "AQoDYXdzEBga4AO8fExvrZMArXTnUR7dpLpeZotV2drDGhjyhAtEEYzqHqDdbXkRF53/H4S0umb+C0ptSziyAj+vq3+2EFFsmtupgZR6rYJOdz3qTA+ZvDFiVVo3GUzMzY/cEyz525RRrec5XaIOwcso2GjmsUddDawa/RdGQ0tzE3iSZrQEjOdQSTGfFRmNmzm+Kr3ZN3KFSE7cmULDrtRs+iqQCsFi7uKFiCUolKzNOLHxTDv9ITLq/nwhi8FVEHj6w1ZLLVcw53raFwpdmIH2QrAbCawcic7s/LIL5doBqTbvVUXPp0WiFg6vYu6goIj3NDMuSJuXsqqlRRM++o4WmX7EjD4n7A/sL4eaQk/XZB7ujsE8kQFrW1j0hJ5qBO4zffSABn9jksz9U9iIaD8clI4zUYVs4TWzVPX0nLz7SliWdxijznUJHvU70YHxYpOYXYyr8t0H8m9tJmKyYc+9J2BH5GjxOML/JMlDn4XCRDzMNGOj2m5vWgHI7pNfr+/cyNZa3Xc/jiUB4Dek/MC8z4hrBqXZT5H/fcPZsh3PDdp7K/gL5V9lGVoKfnF34jY3BaqQSI+er6QTU83cC5oooYTnugK7GDU9Y2SpVs62Db5yzwhP5sIi1ZE1uhgQbu7i/Ky/FPD+vlUg5pbwswU=",
"Expiration" : "2015-12-24T21:39:56Z"
}



------------------------------------------------------------------------------------------------------------------




EEEEEEEEEEEEEEEEEEEE MMMMMMMM MMMMMMMM RRRRRRRRRRRRRRR
E::::::::::::::::::E M:::::::M M:::::::M R::::::::::::::R
EE:::::EEEEEEEEE:::E M::::::::M M::::::::M R:::::RRRRRR:::::R
E::::E EEEEE M:::::::::M M:::::::::M RR::::R R::::R
E::::E M::::::M:::M M:::M::::::M R:::R R::::R
E:::::EEEEEEEEEE M:::::M M:::M M:::M M:::::M R:::RRRRRR:::::R
E::::::::::::::E M:::::M M:::M:::M M:::::M R:::::::::::RR
E:::::EEEEEEEEEE M:::::M M:::::M M:::::M R:::RRRRRR::::R
E::::E M:::::M M:::M M:::::M R:::R R::::R
E::::E EEEEE M:::::M MMM M:::::M R:::R R::::R
EE:::::EEEEEEEE::::E M:::::M M:::::M R:::R R::::R
E::::::::::::::::::E M:::::M M:::::M RR::::R R::::R
EEEEEEEEEEEEEEEEEEEE MMMMMMM MMMMMMM RRRRRRR RRRRRR

[ec2-user@ip-172-31-25-205 ~]$ cd /tmp/
[ec2-user@ip-172-31-25-205 tmp]$ ls
hsperfdata_hadoop hsperfdata_kms hsperfdata_yarn Jetty_ip.172.31.25.205_cn.north.1_compute_internal_19888_jobhistory____.e9m0eq motd.XrA50
hsperfdata_hdfs hsperfdata_mapred Jetty_0_0_0_0_50070_hdfs____w2cu08 Jetty_ip.172.31.25.205_cn.north.1_compute_internal_20888_proxy____.pml0wv puppet_bigtop_file_merge
hsperfdata_httpfs hsperfdata_root Jetty_172_31_25_205_8088_cluster____.f9kbuz motd.party02xi trocla.yaml
[ec2-user@ip-172-31-25-205 tmp]$ wget https://https://www.360docs.net/doc/a416095642.html,/hadoop-lyy/code/hadoop-mapreduce-examples-2.6.0.jar
--2015-12-24 14:40:22-- https://https://www.360docs.net/doc/a416095642.html,/hadoop-lyy/code/hadoop-mapreduce-examples-2.6.0.jar
Resolving https://www.360docs.net/doc/a416095642.html, (https://www.360docs.net/doc/a416095642.html,)... 54.231.168.204
Connecting to https://www.360docs.net/doc/a416095642.html, (https://www.360docs.net/doc/a416095642.html,)|54.231.168.204|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 270366 (264K) [application/x-java-archive]
Saving to: ‘hadoop-mapreduce-examples-2.6.0.jar’

hadoop-mapreduce-examples-2.6.0.jar 100%[========================================================================================================================>] 264.03K 43.5KB/s in 6.1s

2015-12-24 14:40:29 (43.5 KB/s) - ‘hadoop-mapreduce-examples-2.6.0.jar’ saved [270366/270366]

[ec2-user@ip-172-31-25-205 tmp]$ hadoop jar hadoop-mapreduce-examples-2.6.0.jar s3://hadoop-lyy/input/testFile.txt s3://hadoop-lyy/output
Unknown program 's3://hadoop-lyy/input/testFile.txt' chosen.
Valid program names are:
aggregatewordcount: An Aggregate based map/reduce program that counts the words in the input files.
aggregatewordhist: An Aggregate based map/reduce program that computes the histogram of the words in the input files.
bbp: A

map/reduce program that uses Bailey-Borwein-Plouffe to compute exact digits of Pi.
dbcount: An example job that count the pageview counts from a database.
distbbp: A map/reduce program that uses a BBP-type formula to compute exact bits of Pi.
grep: A map/reduce program that counts the matches of a regex in the input.
join: A job that effects a join over sorted, equally partitioned datasets
multifilewc: A job that counts words from several files.
pentomino: A map/reduce tile laying program to find solutions to pentomino problems.
pi: A map/reduce program that estimates Pi using a quasi-Monte Carlo method.
randomtextwriter: A map/reduce program that writes 10GB of random textual data per node.
randomwriter: A map/reduce program that writes 10GB of random data per node.
secondarysort: An example defining a secondary sort to the reduce.
sort: A map/reduce program that sorts the data written by the random writer.
sudoku: A sudoku solver.
teragen: Generate data for the terasort
terasort: Run the terasort
teravalidate: Checking results of terasort
wordcount: A map/reduce program that counts the words in the input files.
wordmean: A map/reduce program that counts the average length of the words in the input files.
wordmedian: A map/reduce program that counts the median length of the words in the input files.
wordstandarddeviation: A map/reduce program that counts the standard deviation of the length of the words in the input files.
[ec2-user@ip-172-31-25-205 tmp]$ hadoop jar hadoop-mapreduce-examples-2.6.0.jar wordcount s3://hadoop-lyy/input/testFile.txt s3://hadoop-lyy/output
15/12/24 14:44:03 INFO fs.EmrFileSystem: Consistency disabled, using com.amazon.ws.emr.hadoop.fs.s3n.S3NativeFileSystem as filesystem implementation
15/12/24 14:44:03 INFO metrics.MetricsSaver: MetricsConfigRecord disabledInCluster: false instanceEngineCycleSec: 60 clusterEngineCycleSec: 60 disableClusterEngine: false maxMemoryMb: 3072 maxInstanceCount: 500 lastModified: 1450967974502
15/12/24 14:44:03 INFO metrics.MetricsSaver: Created MetricsSaver j-24LR2GXY2J4CR:i-bf334987:RunJar:10559 period:60 /mnt/var/em/raw/i-bf334987_20151224_RunJar_10559_raw.bin
15/12/24 14:44:04 INFO client.RMProxy: Connecting to ResourceManager at https://www.360docs.net/doc/a416095642.html,pute.internal/172.31.25.205:8032
15/12/24 14:44:05 INFO input.FileInputFormat: Total input paths to process : 1
15/12/24 14:44:05 INFO lzo.GPLNativeCodeLoader: Loaded native gpl library
15/12/24 14:44:05 INFO lzo.LzoCodec: Successfully loaded & initialized native-lzo library [hadoop-lzo rev 41f4e6be3ac5d6676a3464f77de79a33e8fdd9f3]
15/12/24 14:44:05 INFO mapreduce.JobSubmitter: number of splits:1
15/12/24 14:44:05 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1450967968248_0001
15/12/24 14:44:06 INFO impl.YarnClientImpl: Submitted application application_1450967968248_0001
15/12/24 14:44:06 INFO mapreduce.Job: The url to track the job: http://ip-172

https://www.360docs.net/doc/a416095642.html,pute.internal:20888/proxy/application_1450967968248_0001/
15/12/24 14:44:06 INFO mapreduce.Job: Running job: job_1450967968248_0001
15/12/24 14:44:15 INFO mapreduce.Job: Job job_1450967968248_0001 running in uber mode : false
15/12/24 14:44:15 INFO mapreduce.Job: map 0% reduce 0%
15/12/24 14:44:23 INFO mapreduce.Job: map 100% reduce 0%
15/12/24 14:44:31 INFO mapreduce.Job: map 100% reduce 14%
15/12/24 14:44:32 INFO mapreduce.Job: map 100% reduce 29%
15/12/24 14:44:35 INFO mapreduce.Job: map 100% reduce 43%
15/12/24 14:44:36 INFO mapreduce.Job: map 100% reduce 57%
15/12/24 14:44:38 INFO mapreduce.Job: map 100% reduce 71%
15/12/24 14:44:39 INFO mapreduce.Job: map 100% reduce 86%
15/12/24 14:44:40 INFO mapreduce.Job: map 100% reduce 100%
15/12/24 14:44:41 INFO mapreduce.Job: Job job_1450967968248_0001 completed successfully
15/12/24 14:44:41 INFO mapreduce.Job: Counters: 54
File System Counters
FILE: Number of bytes read=188
FILE: Number of bytes written=901403
FILE: Number of read operations=0
FILE: Number of large read operations=0
FILE: Number of write operations=0
HDFS: Number of bytes read=99
HDFS: Number of bytes written=0
HDFS: Number of read operations=1
HDFS: Number of large read operations=0
HDFS: Number of write operations=0
S3: Number of bytes read=39
S3: Number of bytes written=39
S3: Number of read operations=0
S3: Number of large read operations=0
S3: Number of write operations=0
Job Counters
Launched map tasks=1
Launched reduce tasks=7
Data-local map tasks=1
Total time spent by all maps in occupied slots (ms)=30642
Total time spent by all reduces in occupied slots (ms)=647616
Total time spent by all map tasks (ms)=5107
Total time spent by all reduce tasks (ms)=53968
Total vcore-seconds taken by all map tasks=5107
Total vcore-seconds taken by all reduce tasks=53968
Total megabyte-seconds taken by all map tasks=7354080
Total megabyte-seconds taken by all reduce tasks=155427840
Map-Reduce Framework
Map input records=5
Map output records=5
Map output bytes=56
Map output materialized bytes=160
Input split bytes=99
Combine input records=5
Combine output records=4
Reduce input groups=4
Reduce shuffle bytes=160
Reduce input records=4
Reduce output records=4
Spilled Records=8
Shuffled Maps =7
Failed Shu

ffles=0
Merged Map outputs=7
GC time elapsed (ms)=990
CPU time spent (ms)=5330
Physical memory (bytes) snapshot=2379968512
Virtual memory (bytes) snapshot=23580684288
Total committed heap usage (bytes)=2975334400
Shuffle Errors
BAD_ID=0
CONNECTION=0
IO_ERROR=0
WRONG_LENGTH=0
WRONG_MAP=0
WRONG_REDUCE=0
File Input Format Counters
Bytes Read=39
File Output Format Counters
Bytes Written=39
[ec2-user@ip-172-31-25-205 tmp]$ wget https://https://www.360docs.net/doc/a416095642.html,/hadoop-lyy/code/testCred.jar
--2015-12-24 14:46:55-- https://https://www.360docs.net/doc/a416095642.html,/hadoop-lyy/code/testCred.jar
Resolving https://www.360docs.net/doc/a416095642.html, (https://www.360docs.net/doc/a416095642.html,)... 54.231.184.200
Connecting to https://www.360docs.net/doc/a416095642.html, (https://www.360docs.net/doc/a416095642.html,)|54.231.184.200|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 30633017 (29M) [application/x-java-archive]
Saving to: ‘testCred.jar’

testCred.jar 100%[========================================================================================================================>] 29.21M 89.8KB/s in 9m 19s

2015-12-24 14:56:18 (53.5 KB/s) - ‘testCred.jar’ saved [30633017/30633017]

[ec2-user@ip-172-31-25-205 tmp]$ java -jar testCred.jar
Access Key Id : ASIAPIVTPLIEE2AMPBUQ
Secret Access Key : ARumWhpl5ZCZq7vq4/LQ3t7lkzqIIvmWFTna4HwI
[ec2-user@ip-172-31-25-205 tmp]$ java -jar testCred.jar
Access Key Id : ASIAPIVTPLIEE2AMPBUQ
Secret Access Key : ARumWhpl5ZCZq7vq4/LQ3t7lkzqIIvmWFTna4HwI
[ec2-user@ip-172-31-25-205 tmp]$ ls
hadoop-mapreduce-examples-2.6.0.jar hsperfdata_kms Jetty_0_0_0_0_50070_hdfs____w2cu08 oozie-oozi3076587313438138961.dir oozie-oozi7504600589864885060.dir
hadoop-state-pusher.config hsperfdata_mapred Jetty_172_31_25_205_8088_cluster____.f9kbuz oozie-oozi3215142457022775810.dir oozie-oozi7555400937016437675.dir
hsperfdata_ec2-user hsperfdata_oozie Jetty_ip.172.31.25.205_cn.north.1_compute_internal_19888_jobhistory____.e9m0eq oozie-oozi3402490426518647207.dir oozie-oozi7882072426338049879.dir
hsperfdata_hadoop hsperfdata_root Jetty_ip.172.31.25.205_cn.north.1_compute_internal_20888_proxy____.pml0wv oozie-oozi4603103298998675670.dir puppet_bigtop_file_merge
hsperfdata_hdfs hsperfdata_spark ooziedb-222125727332070331.sql oozie-oozi4960464076438167560.dir testCred.jar
hsperfdata_hive hsperfdata_yarn ooziedb-2382247655867045425.sql oozie-oozi5337827892848861290.dir troc

la.yaml
hsperfdata_httpfs httpd_lua_shm.5272 oozie-oozi1396842200415260394.dir oozie-oozi5994382083259512751.dir
[ec2-user@ip-172-31-25-205 tmp]$ touch test.txt
[ec2-user@ip-172-31-25-205 tmp]$ ls /
bin boot cgroup dev etc home include lib lib64 local lost+found media mnt mnt1 opt proc root run sbin selinux share srv sys tmp usr var
[ec2-user@ip-172-31-25-205 tmp]$ ls -a /
. .. .autofsck .autorelabel bin boot cgroup dev etc home include lib lib64 local lost+found media mnt mnt1 opt proc root run sbin selinux share srv sys tmp usr var
[ec2-user@ip-172-31-25-205 tmp]$ cd /latest
-bash: cd: /latest: No such file or directory
[ec2-user@ip-172-31-25-205 tmp]$ curl http://169.254.169.254/latest/meta-data/
ami-id
ami-launch-index
ami-manifest-path
ancestor-ami-ids
block-device-mapping/
hostname
iam/
instance-action
instance-id
instance-type
kernel-id
local-hostname
local-ipv4
mac
metrics/
network/
placement/
profile
public-hostname
public-ipv4
public-keys/
reservation-id
security-groups
services/[ec2-user@ip-172-31-25-205 tmp]$ curl http://169.254.169.254/latest/meta-data/iam/security-credentials/
EMR_EC2_DefaultRole[ec2-user@ip-172-31-25-205 tmp]$ curl http://169.254.169.254/latest/meta-data/iam/security-credentials/
EMR_EC2_DefaultRole[ec2-user@ip-172-31-25-205 tmp]$ curl http://169.254.169.254/latest/meta-data/iam/security-credentials/role-name

"https://www.360docs.net/doc/a416095642.html,/TR/xhtml1/DTD/xhtml1-transitional.dtd">


404 - Not Found


404 - Not Found




[ec2-user@ip-172-31-25-205 tmp]$ curl http://169.254.169.254/latest/meta-data/iam/security-credentials/
EMR_EC2_DefaultRole[ec2-user@ip-172-31-25-205 tmp]$ curl http://169.254.169.254/latest/meta-data/iam/security-credentials/EMR_EC2_DefaultRole
{
"Code" : "Success",
"LastUpdated" : "2015-12-24T15:12:55Z",
"Type" : "AWS-HMAC",
"AccessKeyId" : "ASIAOAI7OK7JYSJ75X6Q",
"SecretAccessKey" : "s/UVy7+QmQgFKPLUvmx5FR9YNCudcmigAsjLqoCD",
"Token" : "AQoDYXdzEBga4AO8fExvrZMArXTnUR7dpLpeZotV2drDGhjyhAtEEYzqHqDdbXkRF53/H4S0umb+C0ptSziyAj+vq3+2EFFsmtupgZR6rYJOdz3qTA+ZvDFiVVo3GUzMzY/cEyz525RRrec5XaIOwcso2GjmsUddDawa/RdGQ0tzE3iSZrQEjOdQSTGfFRmNmzm+Kr3ZN3KFSE7cmULDrtRs+iqQCsFi7uKFiCUolKzNOLHxTDv9ITLq/nwhi8FVEHj6w1ZLLVcw53raFwpdmIH2QrAbCawcic7s/LIL5doBqTbvVUXPp0WiFg6vYu6goIj3NDMuSJuXsqqlRRM++o4WmX7EjD4n7A/sL4eaQk/XZB7ujsE8kQFrW1j0hJ5qBO4zffSABn9jksz9U9iIaD8clI4zUYVs4TWzVPX0nLz7SliWdxijznUJHvU70YHxYpOYXYyr8t0H8m9tJmKyYc+9J2BH5GjxOML/JMlDn4XCRDzMNGOj2m5vWgHI7pNfr+/cyNZa3Xc/jiUB4Dek/MC8z4hrBqXZT5H/fcPZsh3PDdp7K/gL5V9lGVoKfnF34jY3BaqQSI+er6QTU83cC5oooYTnugK7GDU9Y2SpVs62Db5yzwhP5sIi1ZE1uhgQbu7i/Ky/FPD+vlUg5pbws

wU=",
"Expiration" : "2015-12-24T21:39:56Z"























相关文档
最新文档