Hi

Thanks for your feedback, you can create an issue on 
jira(https://issues.apache.org/jira/projects/IOTDB/issues), since our mailing 
list does not support picture.


I'am sorry that our document has some errors which confused you, i will fix it 
soon. Indeed, start-server.sh script is located at /iotdb-cli/cli directory, 
you don't need to move it to /iotdb/iotdb directory.


In root directory, you can use 'mvn clean package -Dmaven.test.skip=true' to 
package our project.
$ pwd
/workspace/incubator-iotdb
$ mvn clean package -Dmaven.test.skip=true


If you want to start server, you can 
$ cd iotdb/iotdb/bin/
$ ./start-server.sh


if you want to start client, you can 
$ cd iotdb-cli/cli/bin/
$ ./start-client.sh -h 127.0.0.1 -p 6667 -u root -pw root


I hope this can help you.


Thanks
On 3/20/2019 12:33,Jenson<[email protected]> wrote:
Hello,
     My name is Jenson, and I am working at Alibaba now. I am very interested 
in Apache IoTDB and I would like to contribute some codes when I am not busy 
with work. But I got stuck in starting the IoTDB client when following the 
instructions of Doc . Here are the problems I encountered during my trial : 
     1he location of  `start-client.sh` mentioned in the document is wrong.  In 
the document, it says `Let $IOTDB_HOME = /xxx/incubator-iotdb/iotdb/iotdb/` and 
we can start client using this command: `$IOTDB_HOME/bin/start-client.sh`. But 
in fact, this `start-client.sh` script is in the directory: ` 
/xxx/incubator-iotdb/iotdb-cli/cli`.
        Cannot find the main class `org.apache.iotdb.cli.client.Client` error. 
When I try to start the client, it will throw this exception mentioned above. 
After looking into the script named `start-client.sh`, I found the following 
codes:
```
MAIN_CLASS=org.apache.iotdb.cli.client.Client




CLASSPATH=""
for f in ${IOTDB_HOME}/lib/*.jar; do
  CLASSPATH=${CLASSPATH}":"$f
done
```
    So the reason is that the required jars to start IoTDB client are not in 
the correct lib directory. After I copy all the jars in 
`/xxx/incubator-iotdb/iotdb-cli/cli/lib` to 
`/xxx/incubator-iotdb/iotdb/iotdb/lib`, this problem is solved.


        3.   After solving the problem in Step 2, I can finally start the 
client. But unfortunately, it hangs:



      And there is also an exception thrown in IoTDB server:
 



      I don't know what caused this problem, and please help me out.


Thanks!
Jenson

Reply via email to