how to install watcher on elasticsearch in windows? - elasticsearch

I want to install watcher on elasticsearch, but when running
bin\plugin install file:///path/to/file
It says
'bin\plugin' is not recognized as an internal or external command,
operable program or batch file.
I have tried many ways but it does not know plugin at all!

If you're seeing examples that state to execute .\bin\plugin, the assumption is that your command prompt's working directory is in the root of your Elasticsearch install.
The two simple ways for you to solve this:
Make sure your working directory for your command prompt is set to the root of your install
Use the absolute path to the plugin script

Related

'mongoimport' is not recognized as an internal or external command, operable program or batch file

I'm running Windows 10 and calling !mongoimport -d osm -c bham --file bham.json using Python 3.85 in Jupyter Notebook, from a conda environment.
I get 'mongoimport' is not recognized as an internal or external command, operable program or batch file. and the file is not imported.
I have added the MongoDB tools bin folder and the server bin folder to PATH:
I have also tried:
Copying mongoimport.exe to the server bin folder.
Putting .\ before mongoimport in the command.
Calling the file directly !<full file path>.
Removing the \ after bin in PATH.
This is the only MongoDB installation I have, and I can see that the database service is running, as is Compass.
It worked on this computer before I did a clean install.
Thanks!
Edit: change tags
Turns out restarting my computer did the trick. Restarting the kernel after setting the PATH variable was not it. So, it might just have been restarting the command prompt from which Jupyter Notebook was launched after setting the PATH variable that did it.

How to remove "mvn" from windows 10 CMD

I installed node.js and run following command
npm install mvn
now, mvn command is binding to node.js even I uninstalled it.
>mvn
'node' is not recognized as an internal or external command,
operable program or batch file.
Actually, I need to binding "mvn" to maven which I already setted into system PATH.
but, it doesn't work (still points to node.js)
Please help.
There are a "mvn.cmd" file under the following folder
C:\Users\Your name\AppData\Roaming\npm
Simply delete this file.

Issues installing PhantomJS for windows: command not recognized

following the docs here: http://attester.ariatemplates.com/usage/phantom.html, I am trying to install phantomjs on my windows machine.
I tried adding multiple lines to my Path system variable, and yet, I get the same error in the command prompt when I type in phantomjs --version.
" 'phantomjs' is not recognized as an internal or external command, operable program or batch file."
I added the phantomjs.exe to C:\phantomjs\bin\, and added C:\phantomjs\bin\phantomjs to the path, and any variation that I could think of, such as:
C:\phantomjs\bin\phantomjs.exe\; C:\phantomjs\bin; C:\phantomjs\bin\phantomjs\;
How am I not installing this right?
You don't need to put all the directories to the environment PATH variable.
Add only following to your path and restart your command prompt.
C:\phantomjs\bin\
Add phantomjs.exe to C:\Windows\System32 folder.

Nodejitsu on Windows

I've just started playing around with Node.js and was trying to get Nodejitsu to work on my system (Windows 7, Node version 0.8.15)
I installed Jitsu using the "npm install jitsu -g" command, but beyond that trying to perform jitsu users confirm or deploy returns:
'jitsu' is not recognized as an internal or external command, operable
program or batch file.
I understand that I most probably need to add the jitsu install location in my path, but am not sure where jitsu has been installed.
Help much appreciated. Thanks
on a normal Node.js installation on windows you will find the npm modules located at
C:\Program Files\nodejs\node_modules\npm\bin
or in
C:\Users\user\AppData\Roaming\npm\jitsu
You need to set up the PATH environment variable to the correct path
An then you will be able to use Nodejitsu :)

cmd 'patch' is not recognised as an internal/external command, operable program or batch file

I'm trying to patch my wordpress installation to protect from user enumeration.
I found a patch - here
It said to use it I need to navigate to the sites root folder, add the patch file then run it using cmd , patch -p0 <wpuserEnum.patch
When I hit enter I get the 'patch' is not recognised as an internal/external command, operable program or batch file' message
Not the most helpful error reporting. I have googled the problem all day and have not found any solutions regarding 'patch' specifically
I have checked PATH and there is a C:\Windows\System32 path there
Can anybody shed any light on what is happening and why?
I am running Windows Server 2008.
patch is not part of Windows so it won't be installed unless you install it yourself. You can get it as part of the GnuWin32 project - http://gnuwin32.sourceforge.net/packages/patch.htm
You need to edit your system environment variables, then add the path to patch.exe(in GnuWin32\bin) to the PATH environment variable...after restarting the cmd, patch should be recognized...
It helped me to run the next command:
npm i patch-package
(From here: https://www.npmjs.com/package/patch-package )
I don't think GnuWin32 works for Win10 (at least they only mentioned Win7 in their website).
The safest way (works for me) is Git for Windows: https://git-scm.com/download/win
It has patch.exe in Git\usr\bin folder. Just add it to your path will work!

Resources