i am trying ingest data into hadoop
(new-venv) hadoopuser@hadoop-master:~/my-venv$ python tesla.py
put: `/stock_data/historical_data.csv': File exists
Traceback (most recent call last):
File "/home/hadoopuser/my-venv/tesla.py", line 28, in <module>
subprocess.run(["hdfs", "dfs", "-put", historical_data_path, f"{hdfs_dir}/historical_data.csv"], check=True)
File "/usr/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['hdfs', 'dfs', '-put', '/home/hadoopuser/my-venv/tesla_data.csv', '/stock_data/historical_data.csv']' returned non-zero exit status 1.
(new-venv) hadoopuser@hadoop-master:~/my-venv$
New contributor
Onuh John Edoh Adanu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2