Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

HDFS File exists error when re-running Metron Installer

avatar
Super Collaborator

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

avatar
Super Collaborator

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

View solution in original post

1 REPLY 1

avatar
Super Collaborator

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