Member since
09-11-2015
269
Posts
281
Kudos Received
55
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
3260 | 03-15-2017 07:12 AM | |
1837 | 03-14-2017 07:08 PM | |
2280 | 03-14-2017 03:36 PM | |
1890 | 02-28-2017 04:32 PM | |
1345 | 02-28-2017 10:02 AM |
09-29-2016
04:36 AM
@li michael Looks like you have yum repo enabled that points to your local file path(file://mnt/cdrom/repodata/repmd.xml). To fix this, make sure to set "enabled=0" in /etc/yum.repos.d/CentOS-Media.repo on your machine and have a working internet connectivity. cat /etc/yum.repos.d/CentOS-Media.repo
# CentOS-Media.repo
#
# This repo can be used with mounted DVD media, verify the mount point for
# CentOS-6. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c6-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c6-media [command]
[c6-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Basically this setting "enabled=1" is used when there is no internet connectivity and you want to read all repo data from your local machine. Hope this helps.
... View more
09-28-2016
05:41 AM
@li michaelCan you install python-argparse as below.. yum install python-argparse
You should see console output with success messages like below
... View more
09-27-2016
02:03 PM
1 Kudo
@li michael Can you paste the error you are seeing? You can install argparse using below commands.. python setup.py install [OR]
easy_install argparse [OR]
pip install argparse
... View more
09-27-2016
07:17 AM
2 Kudos
@Huahua Wei You are running the sqoop import command as a 'root' which does not belong to hadoop user group. For a sqoop import, some internal temporary directories are created in hdfs, so the current user(in your case) should have permissions to create/modify files in hdfs. So I would recommend re-run the same command as some other user who belongs to hadoop user group, for example: hive. With this, you should not see the above issue. Let me know if this helps.
... View more
09-27-2016
06:23 AM
1 Kudo
@samuel sayag Glad that you were able to solve ranger start problem. Regarding container stop/kill.. try below commands, this should help. docker stop $(docker ps -a -q --filter="name=<containerName>")
docker rm $(docker ps -a -q --filter="name=<containerName>") Refer to this if you need more help.
... View more
09-26-2016
05:51 PM
2 Kudos
@samuel sayag I think while you stopped and started all services(or docker stop/start), something went wrong in the order of bringing services up. Your understanding is correct, solr instance is not up(could be possible due to ordering issue) while ranger-admin is brought up. To fix this issue, can you try bringing Ambari-Infra component(this hosts solr instance as well) first and once it is up completely(no alerts, everything green), try to bring up ranger service(ranger-admin). Let me know if this solves the issue.
... View more
09-26-2016
04:12 PM
@Greg Keys Looks like your VM has gone bad. Similar issue is faced by @Vasilis Vagias couple of days back, he pulled the latest VM snapshot and everything is working fine for him. Please try the same over the latest VM snapshot and let me know if it works for you.
... View more
09-26-2016
03:51 PM
1 Kudo
@Sundar Lakshmanan I guess you can use something like SELECT vax_num, rowid FROM (SELECT vax_num, ROW_NUMBER() OVER() AS rowid FROM <table_name>) <temporary_table_name> WHERE vax_num=0006756423 To give an example for the above: SELECT id, rowid FROM (SELECT id, row_number() over() AS rowid FROM id_table) id_table_temp WHERE id=17;
INFO : Session is already open
INFO : Dag name: select id, rowid FROM (select id,...id=17(Stage-1)
INFO :
INFO : Status: Running (Executing on YARN cluster with App id application_1474453714086_0008)
INFO : Map 1: 0/1 Reducer 2: 0/2
INFO : Map 1: 0(+1)/1 Reducer 2: 0/2
INFO : Map 1: 0(+1)/1 Reducer 2: 0/2
INFO : Map 1: 0(+1)/1 Reducer 2: 0/2
INFO : Map 1: 1/1 Reducer 2: 0/2
INFO : Map 1: 1/1 Reducer 2: 0(+1)/1
INFO : Map 1: 1/1 Reducer 2: 1/1
+------+--------+--+
| id | rowid |
+------+--------+--+
| 17 | 5 |
+------+--------+--+
1 row selected (12.202 seconds)
Please refer to: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+WindowingAndAnalytics and Apache Hive Cookbook
... View more