Vagrant up throws error - vagrant

Hello guys I'm trying to run the command vagrant up but it is throwing me an error. It was working day before yesterday and since yesterday it has been throwing me this error
The directory where plugins are installed (the Vagrant home directory)
has a space in it. On Windows, there is a bug in Ruby when compiling
plugins into directories with spaces. Please move your Vagrant home
directory to a path without spaces and try again.
Now I have googled it and what I got was there may be a space in the directory and yes those answers are right there is a space in some of the paths that are in the PATH variable but the first question that I want to know that
Why was it running it all the days before yestarday
and the second question is
Which path do I have to correct since I personally never did it's installation the system I got had it configuration. Here are the paths that are in my path variable :
C:\ProgramData\Oracle\Java\javapath;
C:\Windows\system32;C:\Windows;
C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files\Git\cmd;
C:\Program Files (x86)\Ampps\php;
C:\ProgramData\ComposerSetup\bin;
C:\Program Files (x86)\Skype\Phone\;
D:\Ampps\mysql\bin;D:\Ampps\php;
C:\HashiCorp\Vagrant\bin;
C:\Program Files (x86)\nodejs\;
C:\Users\TBox Solutions\AppData\Local\atom\bin;
C:\Users\TBox Solutions\AppData\Roaming\Composer\vendor\bin;
C:\Users\TBox Solutions\AppData\Local\.meteor\;
C:\adt-bundle-windows-x86_64-20140702\sdk\platform-tools;
C:\adt-bundle-windows-x86_64-20140702\sdk\tools;
C:\Program Files\Java\jdk1.8.0_77\bin;
C:\Users\TBox Solutions\AppData\Local\Spoon\Cmd;
C:\Users\TBox Solutions\AppData\Roaming\npm

The message says:
The directory where plugins are installed (the Vagrant home directory)
has a space in it. On Windows, there is a bug in Ruby when compiling
plugins into directories with spaces. Please move your Vagrant home
directory to a path without spaces and try again.
You must to change your user name without spaces in it. for example TBox_Solutions.
Create a new user to test it.

Related

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

I am following this instruction to install hadoop 3.3.1 on Windows 10 machine, I followed all the steps as it says but when I reached to step 6, after replacing the bin folder, it asks to run the following command:
`– Format the NameNode
– Open cmd and type command “hdfs namenode –format”`
And I did, but I received the following error message:
'hdfs' is not recognized as an internal or external command, operable program or batch file.
I checked my system environment variables and they all seem to be OK as following:
`echo %JAVA_HOME%
C:\ProgramData\OpenJDK
echo %HADOOP_HOME%
C:\ProgramData\hadoop`
Also added C:\ProgramData\OpenJDK\bin and C:\ProgramData\hadoop to system path. But I don't know what is the problem and why it doesn't work?
I found the problem is that all the installation instructions say that you should replace downloaded bin folder with the existing hadoop/bin folder, but you shouldn't do that!
In fact you MUST add up the files there are inside the downloaded bin folder to the files already exist within the hadoop/bin folder. You HAVEN'T delete the previous hadoop/bin folder or the files inside.

'mvn' is not recognized as an internal or external command (tried everything, still not working)

Sorry I bother you, but this is my last option. I've read lot of an articles also from here Stackoverflow, and tried all things in those articles, but still not working. I really have a headache of this maven-enviromental-case, it is exploding my head very soon.
I have installed Maven to C:\Program Files\apache-maven-3.8.4
I have put it to the System Enviroment variables like this:
Variable Value
MAVEN_HOME C:\Program Files\apache-maven-3.8.4
Included MAVEN_HOME to System Enviroment Variables path like this: %MAVEN_HOME%\bin. Also tried to include location itself to the path like this C:\Program Files\apache-maven-3.8.4
.
Also tried to add those all in User variables. Restarted computer, tried to run CMD as Administrator, any of these working. If I echo %MAVEN_HOME% I get C:\Program Files\apache-maven-3.8.4. In IntelliJ IDEA I see the MAVEN_HOME variable in terminal variables.
Added it to System like this:
And to the PATH like this:
Echoing %PATH% in CMD:
Maven install directory:
Ah something I expected. You have downloaded the github archive but not installation archive https://maven.apache.org/download.cgi (-bin.zip file!). Remove the whole directory first (delete it!)...download the zip archive from the download side and unpack it into the same location...

How to install Pylucene locally without root access on a server?

recently I try to install pylucene on a server in my own home directory because I have no root priviledge.
Now I have successfully installed ant and JCC locally on CentOS under my own home directory. The directory of JCC is "/home/myname/.local/lib/python2.6/site-packages"
I have also successfully "make" under the pylucene directory, but when "make install" it shows that it tries to move some files into the directory " /usr/lib64/python2.6/site-packages/" which I have no permission to access it.
I do changed the Makefile several places as required.
In the comments it says:
PREFIX: where programs are normally installed on your system (Unix).
But there is no variable named as PREFIX
I changed
PREFIX_PYTHON=/usr
ANT=/home/myname/packages/apache-ant-1.9.7/bin/ant
PYTHON=$(PREFIX_PYTHON)/bin/python2.6
JCC=$(PYTHON) -m jcc.__main__
NUM_FILES=8
When I read the Makefile I do not see a environmental variable that controls the installing directory or I miss something ?
SOlved
Thank you guys. I have figured it out.
I just move the builded “lucene” folder directly to my local "site-packages" directory and it works.
INSTALL_OPT=--prefix <path>
The homebrew formula has an example of this.

Spark installation failed on cygwin

I'm currently installing spark using cygwin terminal, I followed the steps indicated here, http://www.tutorialspoint.com/apache_spark/apache_spark_installation.htm, everything was fine until the last step..
I added the "export PATH=$PATH:/usr/local/spark/bin" line to ~/.bashrc file.
When I run the $spark-shell command, it gives me this error..
/usr/local/spark/bin/spark-class: line 86: C:\Program Files\Java\jdk1.7.0_75\bin/bin/java: No such file or directory
I tried searching for answers online but unfortunately nothing worked for me.
Please help. Thanks!
The problem is in:
/usr/local/spark/bin/spark-class: line 86: C:\Program Files\Java\jdk1.7.0_75\bin/bin/java: No such file or directory
You have two "bin" - one from Windows "\bin" and one from cygwin "/bin"
You can modify the JAVA_HOME environment variable - and set it to be C:\Program Files\Java\jdk1.7.0_75 (or the actual path of jdk)
I'd make a backup of /usr/local/spark/bin/spark-class and try to change the following line in /usr/local/spark/bin/spark-class
RUNNER="${JAVA_HOME}/bin/java
to be:
RUNNER="${JAVA_HOME}\java
And then run again the $spark-shell command

Error adding vagrant box in PHPStorm 7, ruby.exe error

My PHPStorm 7 installation is throwing this error whenever I try to add a box. Am I missing something?
I pointed to the vagrant.bat in installation directory as told here
Am I supposed to install ruby too? Didn't say something like that in vagrant's site though.
The path to the .bat file you are using (...\embedded\gems\...) suggests that it is ruby related .. and may require ruby for proper executing (the error message you see confirms such suggestion).
Instead, choose vagrant executable from C:\Program Files (x86)\HashiCorp\Vagrant\bin\ folder.
If .bat file is absent -- choose .exe one instead.

Resources