Member since
03-25-2015
7
Posts
3
Kudos Received
0
Solutions
02-08-2017
02:43 AM
Hi Dinesh, You can use this
set hive.variable.substitute=true;
set hiveconf:my_date=date_sub(current_date, 10);
truncate table table_name parition (date=${hiveconf:my_date}); Hope this will help. Regards Niranjan
... View more
01-19-2017
10:36 AM
1 Kudo
Hello All, Can any please explain me the difference between kerberos ticket_lifetime vs renew_lifetime. Thanks Niranjan
... View more
Labels:
- Labels:
-
Kerberos
12-27-2016
05:14 PM
3 Kudos
How to read fsimage: We can use Offline Image Viewer tool to view the fsimage data in a human readable format. Sometimes, this becomes more essential to analyse the fsimage to understand the usage pattern, how many 0 bite files are created, what is the space consumption pattern and is the fsimage corrupt.
Donwload the fsimage:
hdfs dfsadmin –fetchImage /fsimage This will download the latest fsimage from Name node 16/12/27 05:40:43 INFO namenode.TransferFsImage: Opening connection to http://<nn_hostname>:50070/getimage?getimage=1&txid=latest 16/12/27 05:40:43 INFO namenode.TransferFsImage: Transfer took 0.23s at 89.74 KB/s
Reading fsimage: We can read the fsimage in several output formats. 1 .Web is the default output format. 2 .XML document
3 .Delimiters
4 .Reverse XML. 5 .FileDistribution is the tool for analyzing file sizes in the namespace image. In this blog I will focusing on two output formats Web and Delimiters. To get the output on web:
Run the oiv command with fsimage as input file: hdfs oiv –i /fsimage/fsimage_0000000000000005792 16/12/27 05:48:43 INFO offlineImageViewer.FSImageHandler: Loading 9 strings 16/12/27 05:48:43 INFO offlineImageViewer.FSImageHandler: Loading 64 inodes. 16/12/27 05:48:43 INFO offlineImageViewer.FSImageHandler: Loading inode references 16/12/27 05:48:44 INFO offlineImageViewer.FSImageHandler: Loaded 0 inode references 16/12/27 05:48:44 INFO offlineImageViewer.FSImageHandler: Loading inode directory section 16/12/27 05:48:44 INFO offlineImageViewer.FSImageHandler: Loaded 32 directories 16/12/27 05:48:44 INFO offlineImageViewer.WebImageViewer: WebImageViewer started. Listening on /127.0.0.1:5978. Press Ctrl+C to stop the viewer. Now open another terminal and run the below commands to read fsimage.
hdfs dfs -ls webhdfs://127.0.0.1:5978/ OR hdfs dfs -ls –R webhdfs://127.0.0.1:5978/ We can also get the output in JSON format by using curl:
curl -i http://127.0.0.1:5978/webhdfs/v1/?op=liststatus To get the output in to an output directory:
hdfs ovi –p Delimited –i /fsimage/fsimage__0000000000000005792 –o /fsimage/fsimage.txt We can read the data in fsimage.txt by running: head fsimage.txt from the local folder.
... View more
Labels:
12-24-2016
06:59 AM
Yes, after changing the directory name for 'NFSGateway dump directory' it works for me. Regards Niranjan
... View more
08-03-2016
05:00 PM
Hi Neeraj, I facing similar issue after setting up Trust store and Importing certificate to Trust Store. I have setup the HTTPS with certificate, key and password(my choice). After restarting the Ambari-server and agent. I am not able to access Ambari. Am I missing some thing here, cloud you please help to fix this issue. Thanks Niranjan
... View more