Pig Setup on windows in local mode - apache-pig

I have downloaded pig-0.11.1 from apache website
Installed cygwin with perl package
Installed Latest Java
Added pig.../bin to PATH
D:>PATH
PATH=D:\Windows\system32;D:\Windows;D:\Windows\System32\Wbem;D:\Windows\System32 \WindowsPowerShell\v1.0\;D:\pig-0.11.1\bin
Now, if I run pig -help,
'pig' is not recognized as an internal or external command,
operable program or batch file.
Have I missed any step?

Try opening 'sh' and enter the pig commands. (i.e.) type 'sh' in the command prompt , it will open a shell like below image and enter your pig commands.

Related

nvm use does not switch version of nodejs

I have two versions of Node js but I try to switch to 14.20.1 then I get the message below how should I solve this problem? I have tried to delete the folder Nodejs in C:\Program Files it still does not work
C:\Users\BETA TECH>nvm list
* 16.17.0 (Currently using 64-bit executable)
14.20.1
C:\Users\BETA TECH>nvm use 14.20.1
exit status 1: 'C:\Users\BETA' is not recognized as an internal or external command,
operable program or batch file.
exit status 1: 'C:\Users\BETA' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\BETA TECH>
Use PowerShell and run it as administrator and try again

SendGrid: 'source' is not recognized as an internal or external command, operable program or batch file

I am trying to set up the web api for SendGrid.
I can't create the environment variable. In CMD or Anaconda Prompt, when I enter source ./sendgrid.env
I get:
'source' is not recognized as an internal or external command,
operable program or batch file.
++++++++
Instructions from SendGrid +++++++++++++++++++
Create an environment variable
Update your development environment with your SENDGRID_API_KEY. Run the following in your shell:
echo "export SENDGRID_API_KEY='XXXXX'" > sendgrid.env
echo "sendgrid.env" >> .gitignore
source ./sendgrid.env
source is a *nix command and it appears you are using Windows.
Windows also doesn't support export to set environment variables. To set an environment variable you can either use the UI, as described in this blog post. Or you can use the set function, e.g.
set SENDGRID_API_KEY SG.xxx
Then you should be able to run your application.

"'ssh' is not recognized as an internal or external command"

I get such an error in the terminal 'ssh' is not recognized as an internal or external command,operable program or batch file. while installing Raspberry Pi 3 Model B + internet.I want to perform the operation on Windows in a headless way.) What can I do?
For Windows, first install the git base from here: https://git-scm.com/downloads
Next, set the environment variable:
Press Windows+R and type sysdm.cpl
Select advance -> Environment variable
Select path-> edit the path and paste the below line:
C:\Program Files\Git\git-bash.exe
To test it, open the command window: press Windows+R, type cmd and then type ssh.

'C:\Users\User' is not recognized as an internal or external command, operable program or batch file

When I using VS code remote SSH connection, it always fails to connect and warning me "'C:\Users\User' is not recognized as an internal or external command, operable program or batch file."
I guess the issue is the path "C:\Users\User" contains space, and the full path should be something like "C:\Users\User Name...", but I don't know how to suppress and add the escape character to space.
Can anyone help me to resolve the problem? Many thanks!
Other information:
Operating system: Windows 10.
I have installed OpenSSH and I can connect to the remote server using windows PowerShell or git bash.
The version for VS code is 1.43.0 and extension is 0.50.0.

"#php_bin#" is not recognized as an internal or external command,operable program or batch file

I using PHPUnit and Selenium Server to testing Yii Application,
i m using xp operating system. and i install PHPUnit_Selenium (1.0.1) and other software.actually i follow this bellow instruction to install http://www.yiiframework.com/forum/index.php?/topic/14995-wamp-netbeans-phpunit-selenium-yii/
and i also download the selenium-server-standalone-2.20.0.jar file and through command prompted i started server using java -jar selenium-server-standalone-2.0b3.jar command..
and after that i opened new command prompt and i tried to test my simple hello world yii application. and i invoked this command phpunit functional/SiteTest.php and ya i also set the Test_Base_URL in webtestcase ..
but after invoking above command for test.. some process going on and 2 or 3 times firefox opened and closed automatically and at the end i got this error
"#php_bin#" is not recognized as an internal or external command,operable program or batch file
even i attached screen shots of both cmd prompt ...
http://s14.postimage.org/o057x7wox/1cmd.jpg
You should replace #php_bin# by the path to the php binary. I guess PEAR or PHPUnit installer was supposed to do that.