Thursday, October 26, 2017

Error while creating React Js Project


Error:


{ Error: EPERM: operation not permitted, scandir 'D:\MyWork\ReactJs\learnearn\node_modules\fsevents\node_modules\dashdash\node_modules'
33244 error     at Error (native)
33244 error   stack: 'Error: EPERM: operation not permitted, scandir \'D:\\MyWork\\ReactJs\\learnearn\\node_modules\\fsevents\\node_modules\\dashdash\\node_modules\'\n    at Error (native)',
33244 error   errno: -4048,
33244 error   code: 'EPERM',
33244 error   syscall: 'scandir',
33244 error   path: 'D:\\MyWork\\ReactJs\\learnearn\\node_modules\\fsevents\\node_modules\\dashdash\\node_modules' }
33245 error Please try running this command again as root/Administrator.


check for npm version

> npm -v
5.4.2

well, there is a problem with this version 

downgrade to 5.0.4

> npm install -g npm@5.0.4

> create-react-app myApp

now you will be able to create project successfully


Thursday, October 12, 2017

issues while debugging hadoop eclipse

if you come across any issues related below package , then you to have to add guava.jar library java.lang.ClassNotFoundException: com.google.common.base

if you come across any issues related below package , then you to have to add hadoop-auth*.jar library
java.lang.ClassNotFoundException: org.apache.hadoop.util.PlatformName


if you come across any issues related below package , then you to have to add slf4j-api-*.jar library
java.lang.ClassNotFoundException: org.slf4j.LoggerFactory


if you come across any issues related below package , then you to have to add avro*.jar library
java.lang.ClassNotFoundException: org.apache.avro.io.DatumWriter


if you come across any issues related below package , then you to have to add hadoop-yarn*.jar library 
org/apache/hadoop/yarn/util

Wednesday, October 4, 2017

maven folder structure

objective is to achieve maven folder structure

before you can create src/main/java you have to tell Eclipse not to treat src as a source folder. To do this, right click on the src folder and select build path -> remove from build path.

Once you have done this src will appear in the folder tree in its normal place, so you can create the main and java folders under it, and move the existing src/com to src/main/java/com. Finally right-click the newly-created java folder and select build path -> use as source folder.

Complied class missing in jar file in Eclipse + Maven

It was surprise for me when I ran the jar file I got class not found exception , in case if you are facing the problem in scala IDE, then this post might help.

ok, How to check your compiled class is part or not 

$ jar tf <jar file>

this lists items resides in the jar file 

in case your class is missing, then probably you need to plugin in pom.xml


<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.1.3</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>

</plugin>

Thats all, build your jar file again 

and run the above command