Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HDFS File exists error when re-running Metron Installer

SOLVED Go to solution
Highlighted

HDFS File exists error when re-running Metron Installer

Rising Star

I ran into an issue when i ran the Metron Installer on AWS based on these instructions:

https://github.com/apache/incubator-metron/tree/Metron_0.1BETA_rc5/deployment/amazon-ec2

I fixed that issue and I re-ran the installer via the command:

ansible-playbook -i ec2.py playbook.yml --skip-tags="wait"

However, then I ran into the following error:

03-24 06:22:36,900 p=68310 u=gvetticaden |  fatal: [ec2-54-186-178-244.us-west-2.compute.amazonaws.com]: FAILED! => {"changed": true, "cmd": ["hdfs", "dfs", "-put", "/usr/metron/0.1BETA/config/patterns", "/apps/metron"], "delta": "0:00:02.300088", "end": "2016-03-24 11:22:36.562397", "failed": true, "rc": 1, "start": "2016-03-24 11:22:34.262309", "stderr": "put: `/apps/metron/patterns/asa': File exists\nput: `/apps/metron/patterns/common': File exists\nput: `/apps/metron/patterns/fireeye': File exists\nput: `/apps/metron/patterns/sourcefire': File exists\nput: `/apps/metron/patterns/yaf': File exists", "stdout": "", "stdout_lines": [], "warnings": []}

2016-03-24 06:22:36,904 p=68310 u=gvetticaden |         to retry, use: --limit @playbook.retry
1 ACCEPTED SOLUTION

Accepted Solutions

Re: HDFS File exists error when re-running Metron Installer

Rising Star

I logged into one of the ec2 nodes where an hdp client was installed and after switching to hdfs I deleted the following folder in HDFS and re-ran the installer. This fixed the issue for me.

hadoop fs -rmr /apps/metron/patterns

hadoop fs -rmr /apps/metron/enrichments

1 REPLY 1

Re: HDFS File exists error when re-running Metron Installer

Rising Star

I logged into one of the ec2 nodes where an hdp client was installed and after switching to hdfs I deleted the following folder in HDFS and re-ran the installer. This fixed the issue for me.

hadoop fs -rmr /apps/metron/patterns

hadoop fs -rmr /apps/metron/enrichments