1.) Creating a new group and user
sudo addgroup hadoop
sudo adduser --ingroup hadoop hduser
sudo adduser hduser sudo
su hduser
2.) Generating SSH keys
cd ~
#!/bin/bash | |
#Github Cheat Sheet | |
#To make a branch | |
git branch -b <branch name> | |
#To delete a branch | |
git branch -D <branch name> | |
#To copy a file from one branch to other branch |
#!/bin/bash | |
#1.)This is to list the install version | |
sudo edit-chroot -a | |
#2.)To delete | |
sudo edit-chroot -d trusty | |
#for installation | |
#3.)list the linux distribution | |
sh ~/Downloads/crouton -r list |
import os | |
import sys | |
def filter_lines(f, start_delete, stop_delete): | |
""" | |
Given a file handle, generate all lines except those between the specified | |
text markers. | |
""" | |
lines = iter(f) | |
try: |
// main32.cc is a part of the PYTHIA event generator. | |
// Copyright (C) 2016 Torbjorn Sjostrand. | |
// PYTHIA is licenced under the GNU GPL version 2, see COPYING for details. | |
// Please respect the MCnet Guidelines, see GUIDELINES for details. | |
// This is a sample program showing Alpgen- or Madgraph-style MLM matching | |
// for Madgraph LHEF or native Alpgen format event files. | |
// | |
// Please see the 'Jet Matching Style' manual page for a description of the | |
// parameters and user options. |
sudo chromeos-setdevpasswd |
root -l root://eospublic.cern.ch://eos/opendata/cms/Run2010B/MuOnia/AOD/Apr21ReReco-v1/0000/FEF1B99B-BF77-E011-B0A0-E41F1318174C.root |
country=IT | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid="shoh_MacBookPro" | |
psk="2XXXXXXXX9" | |
key_mgmt=WPA-PSK | |
} |
#!/usr/bin/env python | |
import json | |
import socket | |
from re import sub | |
from sys import exit | |
from random import choice | |
from time import clock,time,sleep | |
from os import system,getenv,path,environ |
export EOS_MGM_URL=root://eospublic.cern.ch | |
xrdcp testfile.txt root://eospublic.cern.ch//eos/opstest/cmspd-bigdata/testfile.txt | |
eos ls -l /eos/opstest/cmspd-bigdata |
1.) Creating a new group and user
sudo addgroup hadoop
sudo adduser --ingroup hadoop hduser
sudo adduser hduser sudo
su hduser
2.) Generating SSH keys
cd ~