Posts

Showing posts from September, 2015

Specify a Data Directory in mongodb

Specify a Data Directory If you want mongod to store data files at a path other than /data/db you can specify a dbPath. The dbPath must exist before you start mongod. If it does not exist, create the directory and the permissions so that mongod can read and write data to this path. For more information on permissions, see the security operations documentation. To specify a dbPath for mongod to use as a data directory, use the --dbpath option. The following invocation will start a mongod instance and store data in the /srv/mongodb path mongod --dbpath /srv/mongodb/

TaskTracker and JobTracker don't start with start-dfs.sh in Hadoop

From hadoop version hadoop 2.0 onwards, default processing framework has been changed to YARN from Classic Mapreduce. You are using YARN, where you cannot see Jobtracker, Tasker in YARN. Jobtracker and Tasktracker is replaced by Resource manager and Nodemanager respectively in YARN. But still you have an option to use Classic Mapreduce framework instead of YARN.

forgot password ubuntu 15.05

Image
Reboot your computer. Hold Shift during boot to start GRUB menu. Highlight your image and press E to edit. Find the line which starts with "linux". Navigate to the end of the line and add: ro init=/bin/bash Once you have changed boot options as indicated in the previous step press F10 to instruct your Ubuntu system to boot. Your system will boot and you will be provided with root command line prompt. Once you get to the command line prompt enter the following commands: root@ubuntu:~#  mount -o remount,rw / root@ubuntu:~# passwd username Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully root@ubuntu:~# reboot -f enjoy..............................

Unable to run mksdcard SDK tool in ubuntu 15.04

for ubuntu 15.04 $ sudo apt-get install lib32stdc++6 and for ubuntu 14.04 $ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

android install on ubuntu 15.04

sudo apt-add-repository ppa:paolorotolo/android-studio sudo apt-get update sudo apt-get install android-studio

How to install Oracle Java on Ubuntu 15.04

ctrl + alt + T then type ..... $ sudo apt-add-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java8-installer enjoy.................

MongoDB 2.6 does not start on Ubuntu 15.10 and How To Install MongoDB In Ubuntu 15.10 Easily

systemd to upstart-sysv # ubuntu 15.04 advanced the default init system # from `upstart` to systemd # switch back to `upstart` $ sudo apt-get install upstart-sysv $ sudo reboot   install # 1. import public key $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 # 2. create a list file for mongodb $ sudo echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list # 3. reload local package database $ sudo apt-get update # 4. install sudo apt-get install -y mongodb-org   Adding the following lines preceding exit 0 in /etc/rc.local file   if test -f /sys/kernel/mm/transparent_hugepage/khugepaged/defrag; then echo 0 > /sys/kernel/mm/transparent_hugepage/khugepaged/defrag fi if test -f /sys/kernel/mm/transparent_hugepage/defrag; then echo never > /sys/kernel/mm/transparent_hugepage/defr

How do I get a list of installed CPAN modules?

command $ instmodsh   Sample outputs: Available commands are: l - List all installed modules m - Select a module q - Quit the program cmd?     To list all installed modules, type l : cmd? l       Sample outputs: Installed modules are: MongoDB Moo Moose Net Number::Compare PBKDF2::Tiny Package::DeprecationManager Package::Stash Package::Stash::XS PadWalker cmd?            enjoy.............................................................................