Saturday, 30 April 2016

SAXParseException hadoop-2.7.2

Caused by: org.xml.sax.SAXParseException; systemId: file:/usr/local/hadoop-2.7.2/etc/hadoop/core-site.xml; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog

solution :

check xml configuration of the file.
cause due not proper closing of tag

hadoop-env.sh missing in hadoop 2.7

hadoop-env.sh missing in hadoop 2.7

earlier location :

/conf/hadoop-env.sh

location is changed to

/etc/hadoop/hadoop-env.sh



install grunt server and start the grunt server


install grunt server and start the grunt server

1) install grunt server.
cmd : npm install -g grunt-cli

2) start grunt server.
note : after creation of yeoman project go to directory
cmd : grunt server

Friday, 29 April 2016

angularjs project scaffolding using yeoman

create a project using yo
prerequisite
a) install npm on your box.

1) install yeoman online using npm command.
cmd : npm install -g yo
ref : github (https://github.com/yeoman/yo)
2) create the project scaffolding using yo command.
note : create a project folder "voiceapp" and move to the directory.
cmd : yo  or (yo angular)
3) We get set of options, choose option based on requirement. here we choose angular.
There are some experimental feature like gulp/saas, based on requirement choose yes or no.
a) angular
b) webapp
..
4) include bootstrap choose yes option.
>( ) angular-animate.js
 ( ) angular-aria.js
 ( ) angular-cookies.js
 (*) angular-resource.js
 ( ) angular-messages.js
 (*) angular-route.js
 (*) angular-sanitize.js
 ( ) angular-touch.js

choose the following angular(resource/route/sanitize).

5) skip if there any option when installation.

angular.js:13550 Error: [ng:areq] Argument 'MynameCtrl' is not a function, got undefined

angular.js:13550 Error: [ng:areq] Argument 'MynameCtrl' is not a function, got undefined

solution :

include controller.js in index file or the required reference file where you are calling

Thursday, 28 April 2016

Genrating project scaffolding for angular js using Yeoman.

step 1.
a) install nodejs window/linux machine or based on the os you have.
ref : nodejs
step 2.
a) install Yeoman ,grunt,bower.
ref : Yeoman
cmd :  install yo.
b) From the given choose angular js and click next.

note :
a) Yeoman : for generating project scaffolding.
b) bower : package manager.
c) grunt : to perform repetitive task, minification,unit testing.



Wednesday, 27 April 2016

how to Enable EPEL Repository for RHEL linux.

how to Enable EPEL Repository for RHEL linux.
EPEL (Extra Packages for Enterprise Linux)
ref : linux