What version of MongoDB is installed on Ubuntu
Question Hi I'm a bit of a shell n00b.
Can anyone tell me how I would check the version of MongoDB that is installed on my Linux Ubuntu machine?
I see that my MongoDB shell version: 1.2.2 so Im pretty sure that MongoDB itself is out dated too. And does anyone know of any 'How to update MongoDB' docs? I find mongodb.org to be a bit confusing.
Please and thank you.…
Read more ⟶There are 0 datanode(s) running and no node(s) are excluded in this operation
Question I have set up a multi node Hadoop Cluster. The NameNode and Secondary namenode runs on the same machine and the cluster has only one Datanode. All the nodes are configured on Amazon EC2 machines.
Following are the configuration files on the master node:
masters
54.68.218.192 (public IP of the master node)
slaves 54.68.169.62 (public IP of the slave node) core-site.xml
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
</property>
</configuration>
mapred-site.xml
<configuration>
<property>
<name>mapreduce.…
Read more ⟶Curl : connection refused
Question I got the following error while running curl:
curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection
refused.
It seems that it is easy to debug, but, I didnt find how to solve it.
The adress 127.0.0.1 is mentioned in the file etc/hosts.
I am using curl version 7.47 on Ubuntu system.
Anyone has an idea about it ?
Thank you.
Answer Make sure you have a service started and listening on the port.…
Read more ⟶How to switch to netcat-traditional in Ubuntu?
Question How do I switch to netcat-traditional in Ubuntu? Whenever I write netcat -h, it appears that I am running netcat-openbsd instead.
I'm new to Ubuntu, so exact commands would be helpful.
Answer enable universe repository (if not enabled)
sudo add-apt-repository universe
Install the other netcat using synaptic. (To do this, the universe repository must be enabled.)
sudo apt-get install netcat-traditional
type sudo update-alternatives --config nc
Select the option /bin/nc.traditional…
Read more ⟶How to use virtualenv with python3.6 on ubuntu 16.04?
Question I'm using Ubuntu 16.04, which comes with Python 2.7 and Python 3.5. I've installed Python 3.6 on it and symlink python3 to python3.6 through alias python3=python3.6.
Then, I've installed virtualenv using sudo -H pip3 install virtualenv. When I checked, the virtualenv got installed in "/usr/local/lib/python3.5/dist-packages" location, so when I'm trying to create virtualenv using python3 -m venv ./venv1 it's throwing me errors:
Error Command: ['/home/wgetdj/WorkPlace/Programming/Python/myvenv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']
What should I do?…
Read more ⟶Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a module not included in the server configurationAction 'configtest' failed
Question I got the below error while I was configuring CKAN DataPusher.
Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a
module not included in the server configurationAction 'configtest'
failed.
How can I fix this?
Answer Try to enable wsgi mod in Apache
sudo a2enmod wsgi
If you come across below error ERROR: Module mod-wsgi does not exist!
You will have to install mod wsgi as below. What you have to do is run the following commands,…
Read more ⟶Run script with rc.local: script works, but not at boot
Question I have a node.js script which need to start at boot and run under the www-data user. During development I always started the script with:
su www-data -c 'node /var/www/php-jobs/manager.js
I saw exactly what happened, the manager.js works now great. Searching SO I found I had to place this in my /etc/rc.local. Also, I learned to point the output to a log file and to append the 2>&1 to "…
Read more ⟶