Thursday, December 17, 2015

Remove .idea or some not needed files from remote


git rm -r --cached .idea
git rm -r --cached
git commit -m "Removing not necessary files"
git push origin  

To create an empty branch from master - local and remote


git checkout --orphan  EmptyBranch
git rm -rf .
git commit --allow-empty -m "initial commit"
git push -u origin EmptyBranch

Friday, December 11, 2015

Clash of Gradle classes for different versionsin #Android Studio - inactive functions


If your gradle path in Project Properties is pointing to one version of gradle like gradle 2.4


And the gradle wrapper file, gradle-wrapper.properties
in gradle/wrapper folder

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip

there will be clash.

Result- You will not be able to see active gradle function links in build.gradle.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {

        classpath 'com.android.tools.build:gradle:1.3.0'
        classpath 'org.robolectric:robolectric-gradle-plugin:0.14.+'
        classpath 'com.jakewharton.hugo:hugo-plugin:1.1.0'
    }
}

If you Press Command+ Mouse Over on "buildscript" in build.gradle, you will not see an active link.

Thursday, December 10, 2015

Some Flume Configurations


FLUME_LOG_DIR=/var/log/flume-ng
FLUME_CONF_DIR=/etc/flume-ng/conf_${FLUME_AGENT_NAME}
FLUME_RUN_DIR=/var/run/flume-ng
FLUME_HOME=/usr/lib/flume-ng

Starting flume in background
nohup flume-ng agent -n CollectionFlume -c conf -f conf/flume-conf.properties > /dev/null 2>&1 &

or better

 "nohup /opt/cloudera/parcels/CDH/lib/flume-ng/bin/flume-ng agent -c /opt/cloudera/parcels/CDH/lib/flume-ng/conf -f /opt/cloudera/parcels/CDH/lib/flume-ng/conf/flume-conf.properties -n agent >/dev/null 2>&1 "


Process 

ps auxwww|grep -i 'flume-ng'