Monday, November 14, 2016

Git commands - reference for my own usage

git add .
git status
git diff
git commit
# To stop tracking a file, remove it from the index
git rm --cached <file>
git rm --cached -r . 

# Display checkin details
# p4 describe
git log

# p4 revert
git checkout -- 
 
# Modify previous commit, change message,add/delete files
git commit --amend

# p4 sync
git pull

## Push and pull from remote location - bitbucket

git remote add origin https://vjonnak@bitbucket.org/vjonnak/mdm.git
git push -u origin master
# To verify
git remote -v
# Pull the repository
git pull


## To amend the author of checked in code
git config --global user.name "Name"
git config --global user.email "< email id >"

git commit --amend --reset-author

# Normal flow
git pull
git add
git commit
git push -u origin master


Monday, October 17, 2016

Kafka installation on ubuntu

Installation for Ubuntu
Instruction link: http://kafka.apache.org/documentation.html
Commands
Install Java
https://help.ubuntu.com/community/Java
https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04
  
sudo apt-get update
sudo apt-get install default-jre
sudo apt-get install default-jdk
 
 

wget http://redrockdigimark.com/apachemirror/kafka/0.10.0.0/kafka_2.11-0.10.0.0.tgz

tar -xzf kafka_2.11-0.10.0.0.tgz
cd kafka_2.11-0.10.0.0