Thursday 21 November 2013

Password of cloudera-scm user

It is present in the directory

/var/lib/cloudera-scm-server-db/data/generated_password.txt

Wednesday 20 November 2013

Enable logging feature for soap webserivce to get test case response

In web-inf folder inside serivce.xml

<jaxws:endpoint...>  
   <jaxws:features>  
      <bean class="org.apache.cxf.feature.LoggingFeature"/>
   </jaxws:features>  
</jaxws:endpoint>

Thursday 14 November 2013

Find count of each word in a file in linux command line

tr -s [:space:] \\n < your_filename | sort | uniq --count | sort -rn | head -n 50

This shows the top 50 words in your file in a sorted manner

Tuesday 5 November 2013

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/client/Scan

Setting the hadoop_classpath variable will fix this issue
 
export HADOOP_CLASSPATH=`/usr/bin/hbase classpath`