12

I am trying to install Apache Cassandra that is a tar.gz file. The following is the output I am getting.

1st instance:

tar -zxvf apache-cassandra-2.0.3-bin.tar.gz
tar (child): apache-cassandra-2.0.3-bin.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

2nd instance:

tar -zxvf apache-cassandra-2.0.3-bin.tar.gz.gitignore
tar (child): apache-cassandra-2.0.3-bin.tar.gz.gitignore: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

What to do? The files I need to install are in a disk and not copied to the machine. Does that matter?

karel
  • 114,770
user296543
  • 129
  • 1
  • 1
  • 3

1 Answers1

9

Reason for your problem is in the error report.

Cannot open: No such file or directory

cded into the directory on which the apache-cassandra-2.0.3-bin.tar.gz file is located and then run the below command to extract it's content.

tar -zxvf filename.tar.gz   # Replace the filename with your's
Avinash Raj
  • 78,556
  • I am having the same error when I use -p => tar: p: Cannot open: No such file or directory – alper Jul 07 '20 at 13:26