Member since
10-01-2015
3933
Posts
1150
Kudos Received
374
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
3374 | 05-03-2017 05:13 PM | |
2801 | 05-02-2017 08:38 AM | |
3082 | 05-02-2017 08:13 AM | |
3012 | 04-10-2017 10:51 PM | |
1528 | 03-28-2017 02:27 AM |
01-25-2016
03:19 PM
@Özgür Akdemirci you're saving a relation riskfactor and then you're trying to store final_data into it. Riskfactor is already used. Try giving the output a new name.
... View more
01-25-2016
01:41 PM
@Michel Sumbul I was able to reach 840k/sec reads on AWS, Centos7, XFS filesystem, 9 nodes, 12 7200 RPM drives in non-mapreduce mode. Same hardware write-only test resulted in 185k/sec. For mixed workload, I got 148k/sec writes and 270k/s reads. This is with snappy compression on.
... View more
01-25-2016
01:33 PM
@Robin Dong please accept the best answer, it is not clear what answer solved your problem.
... View more
01-25-2016
01:32 PM
@Björn Zettergren make sure you restart all components with stale configs, you need to look for orange circle next to each component and restart it. Once everything is restarted, run the service check.
... View more
01-25-2016
12:36 PM
@Anilkumar Panda please paste the directory screenshots and /etc/fstab
... View more
01-25-2016
12:00 AM
1 Kudo
@Robin Dong please view the following scripts. Link
... View more
01-24-2016
05:16 PM
@Michel Sumbul in terms of HBase, your mileage can vary, it depends on your workloads, in some use cases I've seen a lot better performance with compression on and in some not. There are also multiple levels of compression in HBase, (per column family, you can compress rowkeys only or both).
... View more
01-24-2016
05:05 PM
6 Kudos
@Neeraj Sabharwal AFAIK, there's no quotas management view in Ambari, I wrote a short tutorial on quotas, ### QUOTAS ###
# quotas can be number of files or size per directory, independent of each other
sudo -u hdfs hdfs dfs -mkdir /quotasdir
# requires superuser privileges
# set space quota of 1kb on a directory, can be k, m, g, etc.
sudo -u hdfs hdfs dfsadmin -setSpaceQuota 1k /quotasdir
# add a file
sudo -u hdfs hdfs dfs -touchz /quotasdir/1
# notice file is 0 bytes
sudo -u hdfs hdfs dfs -ls /quotasdir/
# for demo purposes, we need to upload a large file, larger than 1kb into directory, watch the prompt
sudo -u hdfs hdfs dfs -chown -R root:hdfs /quotasdir
hdfs dfs -put /root/install.log /quotasdir/
15/11/25 15:10:47 WARN hdfs.DFSClient: DataStreamer Exception
org.apache.hadoop.hdfs.protocol.DSQuotaExceededException: The DiskSpace quota of /quotasdir is exceeded: quota = 1024 B = 1 KB but diskspace consumed = 402653184 B = 384 MB
at org.apache.hadoop.hdfs.server.namenode.DirectoryWithQuotaFeature.verifyStoragespaceQuota(DirectoryWithQuotaFeature.java:211)
at org.apache.hadoop.hdfs.server.namenode.DirectoryWithQuotaFeature.verifyQuota(DirectoryWithQuotaFeature.java:239)
at org.apache.hadoop.hdfs.server.namenode.FSDirectory.verifyQuota(FSDirectory.java:907)
# remove space quota
sudo -u hdfs hdfs dfsadmin -clrSpaceQuota /quotasdir
# try uploading again
hdfs dfs -put /root/install.log /quotasdir/
# ls on the directory
sudo -u hdfs hdfs dfs -ls /quotasdir/
# set name quota on directory, specifies how many files or directories per quota directory where # 2 is number of files or directories allowed in the quota dir
sudo -u hdfs hdfs dfsadmin -setQuota 3 /quotasdir
# add file, nothing happens
sudo -u hdfs hdfs dfs -touchz /quotasdir/1
# add another file and watch the prompt
sudo -u hdfs hdfs dfs -touchz /quotasdir/2
touchz: The NameSpace quota (directories and files) of directory /quotasdir is exceeded: quota=2 file count=3
# remove name quota
sudo -u hdfs hdfs dfsadmin -clrQuota /quotasdir
# now adding another file works
sudo -u hdfs hdfs dfs -touchz /quotasdir/2
# ls on the directory
sudo -u hdfs hdfs dfs -ls /quotasdir/
# An an extension to the count command of the HDFS shell reports quota values and the current count of names and bytes in use.
fs -count -q <directory>...<directory>With the -q option, also report the name quota value set for each directory, the available name quota remaining, the space quota value set, and the available space quota remaining. If the directory does not have a quota set, the reported values are none and inf.# make sure all quotas are cleared sudo -u hdfs hdfs dfsadmin -clrSpaceQuota /quotasdir
sudo -u hdfs hdfs dfsadmin -clrQuota /quotasdir
sudo -u hdfs hdfs dfs -count -q /quotasdir
none inf none inf 1 4 9447 /quotasdir
# set quotas and check again
sudo -u hdfs hdfs dfsadmin -setSpaceQuota 99g /quotasdir
sudo -u hdfs hdfs dfsadmin -setQuota 8888 /quotasdir
8888 8883 106300440576 106300412235 1 4 9447 /quotasdir
sudo -u hdfs hdfs dfs -count -q /quotasdir
# 8888 is number of files
# 106300440576 is 99GB
... View more
01-24-2016
12:10 PM
@Pavel Hladík HDP 2.0 is not supported with Ambari 2.2, either downgrade Ambari or upgrade HDP.
... View more