KAA MASTER Source Code is not compiling.

瀏覽次數:467 次
跳到第一則未讀訊息

Hameed

未讀,
2015年4月15日 凌晨12:44:072015/4/15
收件者:kaapr...@googlegroups.com
Hi ,

Am new to KAA project, Initial set up is completed, Downloaded the master code from GIT , Trying to compile the entire master code using maven but getting the below exception while compiling the mongo-dao module.

[ERROR] Failed to execute goal on project mongo-dao: Could not resolve dependencies for project org.kaaproject.kaa.server.common.nosql:mongo-dao:jar:0.7.1-SNAPSHOT: Failure to find org.kaaproject.kaa.server.common:dao:jar:tests:0.7.1-SNAPSHOT in http://repo.typesafe.com/typesafe/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of typesafe has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project mongo-dao: Could not resolve dependencies for project org.kaaproject.kaa.server.common.nosql:mongo-dao:jar:0.7.1-SNAPSHOT: Failure to find org.kaaproject.kaa.server.common:dao:jar:tests:0.7.1-SNAPSHOT in http://repo.typesafe.com/typesafe/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of typesafe has elapsed or updates are forced
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)

Kindly help me to resolve this.


Thanks in Advance.

Andrew Shvayka

未讀,
2015年4月15日 清晨5:06:242015/4/15
收件者:kaapr...@googlegroups.com
Hi,

You are probably missing "mongo-dao" profile in your build command. Please take a look at building kaa from source documentation page for complete instructions. 
However, if you are new to Kaa I would recommend to use sandbox first. This short video will guide you through sandbox setup: https://www.youtube.com/watch?v=ynbxcRdgXFU

Thanks,
Andrew

Hameed

未讀,
2015年4月15日 上午10:55:132015/4/15
收件者:kaapr...@googlegroups.com
Hi Andrew,

Thanks a lot  for your informatio.

 I resolved the below below issue by commenting the lines in below pom.xml.

[ERROR] Failed to execute goal on project mongo-dao: Could not resolve dependencies for project org.kaaproject.kaa.server.common.nosql:mongo-dao:jar:0.7.1-SNAPSHOT: Failure to find org.kaaproject.kaa.server.common:dao:jar:tests:0.7.1-SNAPSHOT in http://repo.typesafe.com/typesafe/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of typesafe has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project mongo-dao: Could not resolve dependencies for project org.kaaproject.kaa.server.common.nosql:mongo-dao:jar:0.7.1-SNAPSHOT: Failure to find org.kaaproject.kaa.server.common:dao:jar:tests:0.7.1-SNAPSHOT in http://repo.typesafe.com/typesafe/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of typesafe has elapsed or updates are forced
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)


Step 1 :

1) server/common/dao/mongo-dao/pom.xml


 <dependency>
            <groupId>org.kaaproject.kaa.server.common</groupId>
            <artifactId>dao</artifactId>
           <!--  <type>test-jar</type>
            <scope>test</scope> -->
        </dependency>


2) server/common/dao/cassandra-dao/pom.xml

 <dependency>
            <groupId>org.kaaproject.kaa.server.common</groupId>
            <artifactId>dao</artifactId>
         <!--    <type>test-jar</type>
            <scope>test</scope> -->
        </dependency>


3) server/appender/mongo/appender/pom.xml

 <dependency>
            <groupId>org.kaaproject.kaa.server.common.nosql</groupId>
            <artifactId>mongo-dao</artifactId>
            <version>${project.version}</version>
           <!-- <type>test-jar</type>
            <scope>test</scope> -->
        </dependency> 


4) server/operation/pom.xml


<dependency>
            <groupId>org.kaaproject.kaa.server.common</groupId>
            <artifactId>dao</artifactId>
          <!--   <type>test-jar</type>
            <scope>test</scope>-->
        </dependency>
        <dependency>
            <groupId>org.kaaproject.kaa.server.common.nosql</groupId>
            <artifactId>mongo-dao</artifactId>
           <!-- <type>test-jar</type>
            <scope>test</scope>-->
        </dependency>
        <dependency>
            <groupId>org.kaaproject.kaa.common</groupId>
            <artifactId>core</artifactId>
            <version>${project.version}</version>
           <!--  <type>test-jar</type>
            <scope>test</scope> -->
        </dependency> 


5 ) server/bootstrap/pom.xml


  <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
           <!-- <scope>test</scope> -->
        </dependency>


6 ) server/control/pom.xml


  <dependency>
            <groupId>org.kaaproject.kaa.server.common</groupId>
            <artifactId>dao</artifactId>
            <!-- <type>test-jar</type>
            <scope>test</scope> -->
        </dependency>
        <dependency>
            <groupId>org.kaaproject.kaa.server.common.nosql</groupId>
            <artifactId>mongo-dao</artifactId>
            <!-- <type>test-jar</type>
            <scope>test</scope> -->
        </dependency>
      

Step 2 :

Followed the steps in the below link to build the project.


Building project

mvn -Dmaven.test.skip=true clean install 


[INFO] Kaa ................................................ SUCCESS [  0.367 s]
[INFO] Kaa Avro C Generator ............................... SUCCESS [  1.692 s]
[INFO] Kaa Common ......................................... SUCCESS [  0.025 s]
[INFO] Kaa Endpoint - Server Shared ....................... SUCCESS [ 13.432 s]
[INFO] Kaa Core ........................................... SUCCESS [  0.879 s]
[INFO] Kaa Client ......................................... SUCCESS [  0.034 s]
[INFO] Kaa Client (Multi) ................................. SUCCESS [  0.035 s]
[INFO] Kaa Client (Java Core) ............................. SUCCESS [  8.345 s]
[INFO] Kaa Client (Java Desktop) .......................... SUCCESS [  7.872 s]
[INFO] Kaa Client (Java Android) .......................... SUCCESS [  6.668 s]
[INFO] Kaa Client (C++) ................................... SUCCESS [  0.426 s]
[INFO] Kaa TCP (C) ........................................ SUCCESS [  0.083 s]
[INFO] Kaa Client (C) ..................................... SUCCESS [  0.219 s]
[INFO] Kaa Server components .............................. SUCCESS [  0.017 s]
[INFO] Kaa Common Server Components ....................... SUCCESS [  0.019 s]
[INFO] Kaa Zookeeper ...................................... SUCCESS [  0.814 s]
[INFO] Kaa Data Transfer Objects .......................... SUCCESS [  0.760 s]
[INFO] Kaa Thrift Interface ............................... SUCCESS [ 13.151 s]
[INFO] Kaa Thrift CLI Server .............................. SUCCESS [  0.466 s]
[INFO] Kaa Thrift CLI Client .............................. SUCCESS [  0.318 s]
[INFO] Kaa DAO Interface .................................. SUCCESS [  9.190 s]
[INFO] Kaa DAO NoSQL plugins .............................. SUCCESS [  0.030 s]
[INFO] Kaa DAO MongoDB plugin ............................. SUCCESS [  1.292 s]
[INFO] Kaa DAO Cassandra plugin ........................... SUCCESS [  1.472 s]
[INFO] Kaa Server Common Utils ............................ SUCCESS [  0.336 s]
[INFO] Kaa Transport Shared ............................... SUCCESS [  0.388 s]
[INFO] Kaa Netty Server ................................... SUCCESS [  0.562 s]
[INFO] Kaa server shared .................................. SUCCESS [  0.946 s]
[INFO] Kaa Log Shared ..................................... SUCCESS [  3.150 s]
[INFO] Kaa Admin Rest API Client .......................... SUCCESS [  2.485 s]
[INFO] Kaa User Verifier Shared ........................... SUCCESS [  0.243 s]
[INFO] Kaa Appenders ...................................... SUCCESS [  0.019 s]
[INFO] Kaa File Appender .................................. SUCCESS [  0.020 s]
[INFO] Kaa File Appender Config ........................... SUCCESS [  0.288 s]
[INFO] Kaa Mongo DB Appender .............................. SUCCESS [  0.022 s]
[INFO] Kaa Mongo DB Appender Config ....................... SUCCESS [  0.331 s]
[INFO] Kaa Flume Appender ................................. SUCCESS [  0.017 s]
[INFO] Kaa Flume Appender Config .......................... SUCCESS [  0.604 s]
[INFO] Kaa user verifiers ................................. SUCCESS [  0.014 s]
[INFO] Kaa Trustful verifier .............................. SUCCESS [  0.017 s]
[INFO] Kaa Trustful verifier config ....................... SUCCESS [  0.498 s]
[INFO] Kaa Google+ verifier ............................... SUCCESS [  0.017 s]
[INFO] Kaa Google+ verifier config ........................ SUCCESS [  0.323 s]
[INFO] Kaa Facebook verifier .............................. SUCCESS [  0.019 s]
[INFO] Kaa Facebook verifier config ....................... SUCCESS [  0.306 s]
[INFO] Kaa Twitter verifier ............................... SUCCESS [  0.021 s]
[INFO] Kaa Twitter verifier config ........................ SUCCESS [  0.503 s]
[INFO] Kaa Administrative Web Server ...................... SUCCESS [ 40.144 s]
[INFO] Kaa Transports ..................................... SUCCESS [  0.017 s]
[INFO] Kaa HTTP Transport ................................. SUCCESS [  0.015 s]
[INFO] Kaa HTTP Transport Config .......................... SUCCESS [  0.697 s]
[INFO] Kaa HTTP Transports Implementation ................. SUCCESS [  2.856 s]
[INFO] Kaa TCP Transport .................................. SUCCESS [  0.022 s]
[INFO] Kaa TCP Transport Config ........................... SUCCESS [  1.599 s]
[INFO] Kaa TCP Transports Implementation .................. SUCCESS [  1.755 s]
[INFO] Kaa Trustful verifier implementation ............... SUCCESS [  0.822 s]
[INFO] Kaa File Appender Implementation ................... SUCCESS [  1.097 s]
[INFO] Kaa Mongo DB Appender Implementation ............... SUCCESS [  1.680 s]
[INFO] Kaa Flume Appender Implementation .................. SUCCESS [  1.072 s]
[INFO] Kaa Google+ verifier implementation ................ SUCCESS [  0.837 s]
[INFO] Kaa Facebook verifier implementation ............... SUCCESS [  0.656 s]
[INFO] Kaa Twitter verifier implementation ................ SUCCESS [  0.984 s]
[INFO] Kaa Operations Server .............................. SUCCESS [ 24.499 s]
[INFO] Kaa Control Server ................................. SUCCESS [ 16.210 s]
[INFO] Kaa Bootstrap Server ............................... SUCCESS [  5.089 s]
[INFO] Kaa Flume Agents ................................... SUCCESS [  8.907 s]
[INFO] ------------------------------------------------------------------------


Once build success follow the below steps  ,

(PLEASE REFER THE BELOW DETAILS IN THE ABOVE LINK )

Setting up Kaa infrastructure


Load test data.

.
cd /usr/lib/kaa-control/testmongo kaa --eval "db.dropDatabase()"

unable to find the below sh files

sudo ./cleanup.sh
sudo ./init-configuration.sh

7. Generate Java SDK.

unable to find the below sh

sudo ./gen-java-sdk.sh


So am unable to proceed the furthers steps. kindly hep me to resolve it.

Thanks and Regards,
Riyasdeen H.

Hameed

未讀,
2015年4月16日 凌晨12:34:462015/4/16
收件者:kaapr...@googlegroups.com
Hi Andrew,

Thanks a lot . I followed the building kaa from source code link (https://docs.kaaproject.org/display/KAA/Building+Kaa+server+from+source).

 Application build with out any issue.

used the below maven command to build the entire master KAA code

mvn -P compile-gwt,mongo-dao clean install verify -DskipTests

Build Success with out any error.

Next ,I don't want to build C and CPP sdk so I tried to build only JAVA SDK using the below maven command


mvn -P compile-gwt,build-rpm clean install -DskipTests


but am getting error while compile the above command, please find the error details below,


[ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1-alpha-1:attached-rpm (default) on project admin: RPM query for default vendor returned: '127' executing '/bin/sh -c rpm -E '%{_host_vendor}'' -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1-alpha-1:attached-rpm (default) on project admin: RPM query for default vendor returned: '127' executing '/bin/sh -c rpm -E '%{_host_vendor}''
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: RPM query for default vendor returned: '127' executing '/bin/sh -c rpm -E '%{_host_vendor}''
        at org.codehaus.mojo.rpm.RPMHelper.getHostVendor(RPMHelper.java:76)
        at org.codehaus.mojo.rpm.AbstractRPMMojo.checkParams(AbstractRPMMojo.java:919)
        at org.codehaus.mojo.rpm.AbstractRPMMojo.execute(AbstractRPMMojo.java:740)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more


Please help me to resolve this and correct me if am wrong.

Thanks,
Riyasdeen H

Andrew Shvayka

未讀,
2015年4月16日 上午10:44:002015/4/16
收件者:kaapr...@googlegroups.com
Hi,

SDK itself is generated from Admin UI or using REST API. Result of SDK generation for C/C++ endpoint is source code archive that you can build on your target platform.
I do recommend to start using sandbox and proceed with server deployment when you will have working prototype. This will save you a lot of time. 

Regarding your error - looks like you don't have rpm tool installed on your machine (maybe it is outdated). 

Thanks,
Andrew
回覆所有人
回覆作者
轉寄
0 則新訊息