You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by Jenson <wh...@gmail.com> on 2019/03/20 04:33:52 UTC

Start IoTDB client failed

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
<http://iotdb.apache.org/#/Documents/Quick%20Start> . Here are the problems
I encountered during my trial :

   1.      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`.
   2.         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:
[image: image.png]
      And there is also an exception thrown in IoTDB server:

[image: image.png]
      I don't know what caused this problem, and please help me out.

Thanks!
Jenson

Re: Start IoTDB client failed

Posted by Jenson <wh...@gmail.com>.
Hi Xiangdong,


Understood, thanks.

Xiangdong Huang <sa...@gmail.com> 于2019年3月21日周四 下午12:26写道:

> Hi Jenson,
>
> Currently we have not detailed documents (in particular the English
> version).. Now you can find some from Apache IoTDB confluence. And, there
> are some wiki pages in our old repository (before we entered the
> incubator), these wikis will be updated and then migrated to the confluence
> in the future....
>
> Best,
> -----------------------------------
> Xiangdong Huang
> School of Software, Tsinghua University
>
>  黄向东
> 清华大学 软件学院
>
>
> Jenson <wh...@gmail.com> 于2019年3月21日周四 上午9:39写道:
>
> > Hi, thanks for the reply. After rebuilding iotdb and iotdb-cli modules, I
> > started the client successfully.
> > By the way, are there any designing documents for beginners?
> >
> > 徐毅 <xu...@126.com> 于2019年3月20日周三 下午2:21写道:
> >
> > > Hi,
> > >
> > > I have created  a pull request[1] to fix errors in our document. After
> > > this pr is merged, our website will update to the latest version.
> > >
> > > [1]. https://github.com/apache/incubator-iotdb/pull/104
> > >
> > > Thanks.
> > > On 3/20/2019 12:58,徐毅<xu...@126.com> <xu...@126.com> wrote:
> > >
> > > Hi
> > >
> > >
> > > Sorry, i made a mistake, start-client.sh script is located at
> > > /iotdb-cli/cli directory, you don't need to move it to /iotdb/iotdb
> > > directory.
> > >
> > >
> > > Thanks
> > > On 3/20/2019 12:56,徐毅<xu...@126.com> wrote:
> > > 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<wh...@gmail.com> 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
> > >
> > >
> >
>

Re: Start IoTDB client failed

Posted by Xiangdong Huang <sa...@gmail.com>.
Hi Jenson,

Currently we have not detailed documents (in particular the English
version).. Now you can find some from Apache IoTDB confluence. And, there
are some wiki pages in our old repository (before we entered the
incubator), these wikis will be updated and then migrated to the confluence
in the future....

Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University

 黄向东
清华大学 软件学院


Jenson <wh...@gmail.com> 于2019年3月21日周四 上午9:39写道:

> Hi, thanks for the reply. After rebuilding iotdb and iotdb-cli modules, I
> started the client successfully.
> By the way, are there any designing documents for beginners?
>
> 徐毅 <xu...@126.com> 于2019年3月20日周三 下午2:21写道:
>
> > Hi,
> >
> > I have created  a pull request[1] to fix errors in our document. After
> > this pr is merged, our website will update to the latest version.
> >
> > [1]. https://github.com/apache/incubator-iotdb/pull/104
> >
> > Thanks.
> > On 3/20/2019 12:58,徐毅<xu...@126.com> <xu...@126.com> wrote:
> >
> > Hi
> >
> >
> > Sorry, i made a mistake, start-client.sh script is located at
> > /iotdb-cli/cli directory, you don't need to move it to /iotdb/iotdb
> > directory.
> >
> >
> > Thanks
> > On 3/20/2019 12:56,徐毅<xu...@126.com> wrote:
> > 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<wh...@gmail.com> 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
> >
> >
>

Re: Start IoTDB client failed

Posted by Jenson <wh...@gmail.com>.
Hi, thanks for the reply. After rebuilding iotdb and iotdb-cli modules, I
started the client successfully.
By the way, are there any designing documents for beginners?

徐毅 <xu...@126.com> 于2019年3月20日周三 下午2:21写道:

> Hi,
>
> I have created  a pull request[1] to fix errors in our document. After
> this pr is merged, our website will update to the latest version.
>
> [1]. https://github.com/apache/incubator-iotdb/pull/104
>
> Thanks.
> On 3/20/2019 12:58,徐毅<xu...@126.com> <xu...@126.com> wrote:
>
> Hi
>
>
> Sorry, i made a mistake, start-client.sh script is located at
> /iotdb-cli/cli directory, you don't need to move it to /iotdb/iotdb
> directory.
>
>
> Thanks
> On 3/20/2019 12:56,徐毅<xu...@126.com> wrote:
> 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<wh...@gmail.com> 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
>
>

Re: Start IoTDB client failed

Posted by 徐毅 <xu...@126.com>.
Hi,


I have created  a pull request[1] to fix errors in our document. After this pr is merged, our website will update to the latest version.


[1]. https://github.com/apache/incubator-iotdb/pull/104


Thanks.
On 3/20/2019 12:58,徐毅<xu...@126.com> wrote:
Hi


Sorry, i made a mistake, start-client.sh script is located at /iotdb-cli/cli directory, you don't need to move it to /iotdb/iotdb directory.


Thanks
On 3/20/2019 12:56,徐毅<xu...@126.com> wrote:
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<wh...@gmail.com> 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

Re: Start IoTDB client failed

Posted by 徐毅 <xu...@126.com>.
Hi


Sorry, i made a mistake, start-client.sh script is located at /iotdb-cli/cli directory, you don't need to move it to /iotdb/iotdb directory.


Thanks
On 3/20/2019 12:56,徐毅<xu...@126.com> wrote:
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<wh...@gmail.com> 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

Re: Start IoTDB client failed

Posted by 徐毅 <xu...@126.com>.
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<wh...@gmail.com> 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