" 'hdfs' is not recognized as an internal or external command, operable program or batch file" - hadoop

I am on the final stage of installing hadoop and when I try to run the commands this error occurs. Can anyone help me solve this?

This is a Windows error that indicates your PATH doesn't properly have %HADOOP_HOME%\bin defined
Personally, my recommendation is to always use Linux environments for Hadoop since this is almost always what it'll be if you used it for a job.

Related

"Error 7: Hardlock not found" when starting CANape from command line via Jenkins

Trying to launch Vector CANape via the command line canape32 command, and it works perfectly in the windows command prompt. When attempting to run a windows batch command in our Jenkins multibranch pipeline to do the same thing, it successfully loads the remote client DLL file and then gets stops on "Error 7: Hardlock not found." This error persists in a freestyle project as well, any clues as to what the difference in the environments is? I would expect since it runs the canape32 command just like in the regular command prompt it would work just fine, but I must be missing something.
This is a due to Jenkins redirecting the consule output. When using Vector's ASAP2 Toolset instead of CANape to generate A2L files you can disable the output via the INI files so this doesn't occur.

Gitlab windows Runner lastcontact showing never

We have installed Enterprise edition GITLAB.
We have configured the shared runner but it showing the last contact as never.
When I try to run the gitlab-runner install command throwing error
like 'gitlab-runner' is not recognized as an internal or external command,
operable program or batch file.
our Gitlab version is 11.2.0
Can anyone help me out with this?
Use command line to add the correct path Environment variable
set PATH=%PATH%C:\Program Files\Git\bin
I found the solution. I missed one key step while registering the runner.
gitlab-runner register
Now the runner is up and working.

Can't add mongodb to PATH variable on windows 7

I tried to add the mongodb programs on my windows 7 latop to run a few programs I'm working on.
I added the mongodb path to the end of windows PATH variable in system properties / advanced. This is what I have:
C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\RSA SecurID Token Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Dell\Dell Data Protection\Encryption\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\tdunphy\bin;C:\Python27;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%systemroot%\System32\WindowsPowerShell\v1.0\;C:\Python27\Scripts;C:\Users\tdunphy\bin\;C:\HashiCorp\Vagrant\bin;C:\Program Files (x86)\Skype\Phone;C:\Program Files\MongoDB\Server\3.4\bin
And when I try to run the mongo programs, this is what I get:
mongod' is not recognized as an internal or external command,
operable program or batch file.
mongo
'mongo' is not recognized as an internal or external command,
operable program or batch file.
What am I doing wrong?
I was facing the same situation moments ago. What I did was backup my PATH variable and put only the MongoDB path there. Restarted CLI and it worked. Then I added the deleted paths. Don't know why this worked.
By the way, 'mongodb' will not work, it's mongo or mongod depending what you want to call.

Apache pig on windows gives "hadoop-config.cmd' is not recognized as an internal or external command" error when running "pig -x local"

If you are stuck at running Apache Pig on windows due to an error like
hadoop-2.4.0\bin\hadoop-config.cmd' is not recognized as an internal or external command,
operable program or batch file.
though you are having Hadoop running perfectly on windows
Answer, which was originally added by the asker inside the quesiton.
These steps may help you.
Troubleshooting steps
open the file pig.cmd in any editor like notpad / notepad++
look for the line set HADOOP_BIN_PATH=%HADOOP_HOME%\bin
replace this with set HADOOP_BIN_PATH=%HADOOP_HOME%\libexec
What we did was that hadoop-config.cmd file was not being found by pig so we pointed it with the correct one. You may first find where the hadoop-config.cmd file is and replace it with appropriate path. This was what my hadoop-2.4.0 was having.

Starting Cassandra Server Error

I have a problem starting Server, it shows this error on starting.
C:\cassandra107\bin>cassandra
Starting Cassandra Server
Error opening zip file or JAR manifest missing : C:\apache-cassandra-1.0.7\bin\l
ib\jamm-0.2.5.jar
Error occurred during initialization of VM
agent library failed to init: instrument
I have Set Envi Variables:
"CASSANDRA_HOME" variable as "C:\cassandra107\bin"
"JAVA_HOME" variable as "C:\Program Files\Java\jre6"
I have another Doubt why is still pointing c:\apache when i have set the Envi Variable as c:\cassandra107
pls help me out thanks in advance
I think you might want to point CASSANDRA_HOME to "C:\cassandra107" rather than "C:\cassandra107\bin" and start cassandra as "bin\cassandra" in "C:\cassandra107"
I'd use the Windows installer from http://www.datastax.com/products/community instead of trying to run it manually.

Resources