Member since
05-29-2017
408
Posts
123
Kudos Received
9
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
3197 | 09-01-2017 06:26 AM | |
2043 | 05-04-2017 07:09 AM | |
1849 | 09-12-2016 05:58 PM | |
2559 | 07-22-2016 05:22 AM | |
1981 | 07-21-2016 07:50 AM |
02-01-2017
10:08 AM
Thank you so much @Jay SenSharma. It is working fine and I made it parameterized for file path also.
... View more
01-31-2017
06:43 AM
Team, I have requirement where I need last accessed time of file, I tried to get it from ranger audit db but there are so many tmp files and dirs which are creating any issue. So is there any other way like command or API to get last access time.
... View more
Labels:
- Labels:
-
Apache Ranger
-
HDFS
10-05-2016
11:48 AM
1 Kudo
@vsharmaThansk for your reply. But it was not an issue with /hdp/ dir. As it was working fine for HDP Base repo. http://w3.hdp22/hdp/HDP/centos6/2.x/updates/2.3.0.0/
Actually I forgot to copy HDP-UTILS file to this location (/var/www/html/hdp). Once I copied it then it started working and I have successfully upgraded my hdp stack as well. [root@w3 hdp]# ll total 8 drwxr-xr-x 3 root root 4096 Oct 4 07:48 HDP drwxr-xr-x 3 ambari-qa users 4096 Dec 3 2015 HDP-UTILS-1.1.0.20
http://w3.hdp22/hdp/HDP-UTILS-1.1.0.20/repos/centos6/ Index of /hdp/HDP-UTILS-1.1.0.20/repos/centos6
... View more
10-04-2016
12:18 PM
Team, I am upgrading one of my cluster and following given url(http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.0.0/bk_upgrading_Ambari/content/_upgrading_hdp_stack.html) also with Local Repository with No Internet Access. I have downloaded tar and setup local repository as well. I am able to setup HDP Base URL but not able to setup HDP-UTILS Base URL. getting following error. http://w3.hdp22/hdp/HDP/centos6/2.x/updates/2.3.0.0/ Index of /hdp/HDP/centos6/2.x/updates/2.3.0.0 Name Last modified Size Description Parent Directory RPM-GPG-KEY/ 17-Jul-2015 14:58 accumulo/ 17-Jul-2015 14:58 atlas/ 17-Jul-2015 14:58 bigtop-jsvc/ 17-Jul-2015 14:58 bigtop-tomcat/ 17-Jul-2015 14:58 build.id 17-Jul-2015 14:58 Error: http://w3.hdp22/hdp/HDP-UTILS-1.1.0.20/repos/centos6 Not Found The requested URL /hdp/HDP-UTILS-1.1.0.20/repos/centos6 was not found on this server. Apache/2.2.15 (CentOS) Server at w3.hdp22 Port 80.So can you please help me to set it up.
... View more
Labels:
09-27-2016
10:32 AM
@jk: There was some network slowness and it was getting timeout as well. So once that is resolved I ran your above give steps this problem resolved. It is being installed now without any other error.
... View more
09-26-2016
01:54 PM
[root@m1 log]# /usr/bin/yum install hdp-select Loaded plugins: fastestmirror Setting up Install Process Determining fastest mirrors epel/metalink | 5.1 kB 00:00 * base: ftp.iitm.ac.in * epel: epel.mirror.net.in * extras: ftp.iitm.ac.in * updates: ftp.iitm.ac.in HDP-2.3 | 2.9 kB 00:00 HDP-2.3/primary_db | 61 kB 00:00 HDP-2.3.4.0-3485 | 2.9 kB 00:00 HDP-2.3.4.0-3485/primary_db | 61 kB 00:00 HDP-2.5.0.0 | 2.9 kB 00:00 HDP-2.5.0.0/primary_db | 69 kB 00:00 HDP-UTILS-1.1.0.20 | 2.9 kB 00:00 HDP-UTILS-1.1.0.20/primary_db | 27 kB 00:00 HDP-UTILS-2.3.4.0-3485 | 2.9 kB 00:00 HDP-UTILS-2.3.4.0-3485/primary_db | 27 kB 00:00 HDP-UTILS-2.5.0.0 | 2.9 kB 00:00 HDP-UTILS-2.5.0.0/primary_db | 33 kB 00:00 Updates-ambari-2.4.0.1 | 2.9 kB 00:00 Updates-ambari-2.4.0.1/primary_db | 8.3 kB 00:00 base | 3.7 kB 00:00 base/primary_db | 4.7 MB 00:35 bintray--sbt-rpm | 1.3 kB 00:00 bintray--sbt-rpm/primary | 1.8 kB 00:00 bintray--sbt-rpm 11/11 epel | 4.3 kB 00:00 http://epel.mirror.net.in/epel/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel Trying other mirror. epel | 4.3 kB 00:00 epel/primary_db | 5.9 MB 00:24 extras | 3.4 kB 00:00 extras/primary_db | 37 kB 00:00 updates | 3.4 kB 00:00 updates/primary_db | 2.0 MB 00:08 Package hdp-select-2.5.0.0-1245.el6.noarch already installed and latest version Nothing to do [root@m1 log]#
... View more
09-26-2016
12:34 PM
@Ayub Pathan I am using following as base URL and don't see any n/w issue. http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.5.0.0
... View more
09-26-2016
11:32 AM
Team, I am trying to upgrade from 2.3.4 to 2.5.0.0 and following give URL but getting error at installing steps. http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.1.0/bk_ambari-upgrade/content/upgrading_HDP_register_and_install_target_version.html 2016-09-22 04:35:25,614 - Package Manager failed to install packages. Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install hdp-select' returned 1. Error: Cannot retrieve repository metadata (repomd.xml) for repository: HDP-2.5.0.0. Please verify its path and try again
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/custom_actions/scripts/install_packages.py", line 363, in install_packages
retry_count=agent_stack_retry_count
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in __init__
self.env.run()
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
self.run_action(resource, action)
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
provider_action()
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 58, in action_upgrade
self.upgrade_package(package_name, self.resource.use_repos, self.resource.skip_repos)
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 54, in upgrade_package
return self.install_package(name, use_repos, skip_repos, is_upgrade)
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py", line 49, in install_package
self.checked_call_with_retries(cmd, sudo=True, logoutput=self.get_logoutput())
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 83, in checked_call_with_retries
return self._call_with_retries(cmd, is_checked=True, **kwargs)
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 91, in _call_with_retries
... View more
Labels:
09-24-2016
07:18 AM
@Gurmukh Singh: Thanks I just tested it with following ways and it is working fine. We can change hadoop fs -ls to hadoop fs -rm -r and required dir. #!/bin/bash usage="Usage: dir_diff.sh [days]" if [!"$1"] then echo$usage exit1 fi now=$(date +%s) hadoop fs -ls /zone_encr2/ | grep "^d" | while read f; do dir_date=`echo $f | awk '{print $6}'` difference=$(( ( $now - $(date -d "$dir_date" +%s) ) / (24 * 60 * 60 ) )) if [$difference-gt$1]; then hadoop fs -ls `echo$f| awk '{ print $8 }'`; fi done
... View more