Posts

Showing posts from 2014

Drive Partition and Format (Mac and Windows)

Drive Partition and Format (Mac and Windows) 1. Open Disk Utility in your Utilities folder. 2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the  Partition  tab in the DU main window. 3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the  Options  button, set the partition scheme to GUID then click on the  OK  button. Set the format type to Mac OS Extended (Journaled.) Click on the  Apply  button and wait until the process has completed. 4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the  Erase  tab in the DU main window. 5. Set the format type to Mac OS Extended (Journaled.) Click on the  Security  button, check the button for Zero Data and click on  OK  to return to the Erase window. 6. Clic...

get key and value from properties file in different location, ratherthan current source directory

/** * it receive the property value for the tree view preference. * @param key * @return */ public static String getPluginProperty(String key, String file) { String str = null; FileInputStream fis=null; try { Properties p = new Properties(); if(file.isEmpty()) { fis = new FileInputStream(PLUGIN_NAME); }else { fis = new FileInputStream(file); } p.load(fis); str = p.getProperty(key); } catch (Exception s) { } return str; } /** * gives all property keys from the properties file */ public static void getPreferenceValues() { ResourceBundle preferenceBundle = null; FileInputStream fis; File filename=new File(System.getProperty("user.home")+ "\\mmsb\\mmsb_preference.properties"); try { if(filename.exists()) { fis = new FileInputStream(filename); }else { return ; } preferenceBundle = new PropertyResource...
Hadoop Setup Hadoop2.4.1 Unable to load realm info from SCDynamicStore to solve this issue in Mac OS mavericks or Yosemite OS X 1. Set your JAVA_HOME correctly  2. Set you hadoop-env.sh with following  export HADOOP_OPTS="-Djava.security.krb5.realm= -Djava.security.krb5.kdc=" export HADOOP_OPTS="${HADOOP_OPTS} -Djava.security.krb5.realm= -Djava.security.krb5.kdc=" export HADOOP_OPTS="${HADOOP_OPTS} -Djava.security.krb5.conf=/dev/null" 3. Restart you Hadoop cluster