You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by 可以扣篮但没必要 <97...@qq.com> on 2020/06/16 07:17:39 UTC

启动IoTDB服务时报错

![](cid:2D070111@269D530D.1372E85E)  
![](cid:36080712@8F4CAA38.1372E85E)  


Re: 启动IoTDB服务时报错

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

It is fixed in the master branch.
已经修复windows下的问题了。


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

 黄向东
清华大学 软件学院


Xiangdong Huang <sa...@gmail.com> 于2020年6月16日周二 下午4:34写道:

> Hi,
>
> I have find a way to avoid that: put all classpath into MANIFEST.MF file.
>
> Will submit a PR in few hours.
>
> 一会儿会发一个更新,彻底解决掉这个问题。
>
> Best,
> -----------------------------------
> Xiangdong Huang
> School of Software, Tsinghua University
>
>  黄向东
> 清华大学 软件学院
>
>
> 可以扣篮但没必要 <97...@qq.com> 于2020年6月16日周二 下午4:14写道:
>
>>
>> 我尝试过直接copy到较浅的路径,还是报这个错,正如您虽说,似乎是编译时采取的绝对路径导致运行调用的还是一开始编译时路径下的jar包?
>>
>> ------------------ 原始邮件 ------------------
>> *发件人:* "Xiangdong Huang"<sa...@gmail.com>;
>> *发送时间:* 2020年6月16日(星期二) 下午4:09
>> *收件人:* "可以扣篮但没必要"<97...@qq.com>;
>> *抄送:* "dev"<de...@iotdb.apache.org>;
>> *主题:* Re: 启动IoTDB服务时报错
>>
>> Hi,
>>
>> This is a common issue in Windows. It is because the max length of
>> CMD.exe command is 8191 in Windows, while Java programs have to put all
>> jars into its classpath.
>> In this version, you have to reduce the depth of iotdb folder, e.g., from
>> D:\xxx\....\...\iotdb to D:\iotdb.
>>
>>
>> 这是windows操作系统的一个限制,命令行里的命令最长是8191个字符。但是java程序在拼接他的类路径时,使用的是绝对路径(从D:\开始的),最终启动命令超过了8191个字符。
>>
>> 目前版本的解决方法只能是把iotdb不要放在这么深的路径下(比如放到d:\iotdb下,在运行,就没问题了)。
>>
>> 后续会考虑进行两处修改:
>> 1. 在拼接jar的路径时使用相对路径;
>> 2. 尝试是否可以通过使用环境变量来解决。
>>
>> Best,
>> -----------------------------------
>> Xiangdong Huang
>> School of Software, Tsinghua University
>>
>>  黄向东
>> 清华大学 软件学院
>>
>>
>> 可以扣篮但没必要 <97...@qq.com> 于2020年6月16日周二 下午3:42写道:
>>
>>>
>>> D:\XXX\WorkSpace\Project\incubator-iotdb\server\target\iotdb-server-0.10.0-SNAPSHOT\sbin>start-server.bat
>>> ````````````````````````
>>> Starting IoTDB
>>> ````````````````````````
>>> "setting local JMX..."
>>> Detect 64-bit Java, maximum memory allocation pool = 2GB, initial memory
>>> allocation pool = 2GB
>>> If you want to change this configuration, please check
>>> conf/iotdb-env.sh(Unix or OS X, if you use Windows, check
>>> conf/iotdb-env.bat).
>>> 输入行太长。
>>> 此时不应有
>>> "D:\XXX\WorkSpace\Project\incubator-iotdb\server\target\iotdb-server-0.10.0-SNAPSHOT\lib\slf4j-api-1.7.25.jar"。
>>>
>>>
>>> ------------------ 原始邮件 ------------------
>>> *发件人:* "Xiangdong Huang"<sa...@gmail.com>;
>>> *发送时间:* 2020年6月16日(星期二) 下午3:40
>>> *收件人:* "dev"<de...@qq.com>;
>>> *主题:* Re: 启动IoTDB服务时报错
>>>
>>> Hi,
>>>
>>> I can not see the info.. Can you send it again (with plain text)?
>>> 你好, 这个邮件看不到内容,可以再发一次么(邮件列表不支持图片)。也可以放在github 的issue上 (
>>> https://github.com/apache/incubator-iotdb/issues)
>>>
>>> Best,
>>> -----------------------------------
>>> Xiangdong Huang
>>> School of Software, Tsinghua University
>>>
>>>  黄向东
>>> 清华大学 软件学院
>>>
>>>
>>> 可以扣篮但没必要 <97...@qq.com> 于2020年6月16日周二 下午3:33写道:
>>>
>>>>
>>>>
>>>>

Re: 启动IoTDB服务时报错

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

I have find a way to avoid that: put all classpath into MANIFEST.MF file.

Will submit a PR in few hours.

一会儿会发一个更新,彻底解决掉这个问题。

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

 黄向东
清华大学 软件学院


可以扣篮但没必要 <97...@qq.com> 于2020年6月16日周二 下午4:14写道:

>
> 我尝试过直接copy到较浅的路径,还是报这个错,正如您虽说,似乎是编译时采取的绝对路径导致运行调用的还是一开始编译时路径下的jar包?
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Xiangdong Huang"<sa...@gmail.com>;
> *发送时间:* 2020年6月16日(星期二) 下午4:09
> *收件人:* "可以扣篮但没必要"<97...@qq.com>;
> *抄送:* "dev"<de...@iotdb.apache.org>;
> *主题:* Re: 启动IoTDB服务时报错
>
> Hi,
>
> This is a common issue in Windows. It is because the max length of CMD.exe
> command is 8191 in Windows, while Java programs have to put all jars into
> its classpath.
> In this version, you have to reduce the depth of iotdb folder, e.g., from
> D:\xxx\....\...\iotdb to D:\iotdb.
>
>
> 这是windows操作系统的一个限制,命令行里的命令最长是8191个字符。但是java程序在拼接他的类路径时,使用的是绝对路径(从D:\开始的),最终启动命令超过了8191个字符。
>
> 目前版本的解决方法只能是把iotdb不要放在这么深的路径下(比如放到d:\iotdb下,在运行,就没问题了)。
>
> 后续会考虑进行两处修改:
> 1. 在拼接jar的路径时使用相对路径;
> 2. 尝试是否可以通过使用环境变量来解决。
>
> Best,
> -----------------------------------
> Xiangdong Huang
> School of Software, Tsinghua University
>
>  黄向东
> 清华大学 软件学院
>
>
> 可以扣篮但没必要 <97...@qq.com> 于2020年6月16日周二 下午3:42写道:
>
>>
>> D:\XXX\WorkSpace\Project\incubator-iotdb\server\target\iotdb-server-0.10.0-SNAPSHOT\sbin>start-server.bat
>> ````````````````````````
>> Starting IoTDB
>> ````````````````````````
>> "setting local JMX..."
>> Detect 64-bit Java, maximum memory allocation pool = 2GB, initial memory
>> allocation pool = 2GB
>> If you want to change this configuration, please check
>> conf/iotdb-env.sh(Unix or OS X, if you use Windows, check
>> conf/iotdb-env.bat).
>> 输入行太长。
>> 此时不应有
>> "D:\XXX\WorkSpace\Project\incubator-iotdb\server\target\iotdb-server-0.10.0-SNAPSHOT\lib\slf4j-api-1.7.25.jar"。
>>
>>
>> ------------------ 原始邮件 ------------------
>> *发件人:* "Xiangdong Huang"<sa...@gmail.com>;
>> *发送时间:* 2020年6月16日(星期二) 下午3:40
>> *收件人:* "dev"<de...@qq.com>;
>> *主题:* Re: 启动IoTDB服务时报错
>>
>> Hi,
>>
>> I can not see the info.. Can you send it again (with plain text)?
>> 你好, 这个邮件看不到内容,可以再发一次么(邮件列表不支持图片)。也可以放在github 的issue上 (
>> https://github.com/apache/incubator-iotdb/issues)
>>
>> Best,
>> -----------------------------------
>> Xiangdong Huang
>> School of Software, Tsinghua University
>>
>>  黄向东
>> 清华大学 软件学院
>>
>>
>> 可以扣篮但没必要 <97...@qq.com> 于2020年6月16日周二 下午3:33写道:
>>
>>>
>>>
>>>

回复: 启动IoTDB服务时报错

Posted by 可以扣篮但没必要 <97...@qq.com>.
我尝试过直接copy到较浅的路径,还是报这个错,正如您虽说,似乎是编译时采取的绝对路径导致运行调用的还是一开始编译时路径下的jar包?


------------------&nbsp;原始邮件&nbsp;------------------
发件人:&nbsp;"Xiangdong Huang"<sainthxd@gmail.com&gt;;
发送时间:&nbsp;2020年6月16日(星期二) 下午4:09
收件人:&nbsp;"可以扣篮但没必要"<971106266@qq.com&gt;;
抄送:&nbsp;"dev"<dev@iotdb.apache.org&gt;;
主题:&nbsp;Re: 启动IoTDB服务时报错



Hi,

This is a common issue in Windows. It is because the max length of CMD.exe command is 8191 in Windows, while Java programs have to put all jars into its classpath.
In this version, you have to reduce the depth of iotdb folder, e.g., from D:\xxx\....\...\iotdb to D:\iotdb.


这是windows操作系统的一个限制,命令行里的命令最长是8191个字符。但是java程序在拼接他的类路径时,使用的是绝对路径(从D:\开始的),最终启动命令超过了8191个字符。


目前版本的解决方法只能是把iotdb不要放在这么深的路径下(比如放到d:\iotdb下,在运行,就没问题了)。


后续会考虑进行两处修改:
1. 在拼接jar的路径时使用相对路径;
2. 尝试是否可以通过使用环境变量来解决。


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

&nbsp;黄向东
清华大学 软件学院 








可以扣篮但没必要 <971106266@qq.com&gt; 于2020年6月16日周二 下午3:42写道:

D:\XXX\WorkSpace\Project\incubator-iotdb\server\target\iotdb-server-0.10.0-SNAPSHOT\sbin&gt;start-server.bat
````````````````````````
Starting IoTDB
````````````````````````
"setting local JMX..."
Detect 64-bit Java, maximum memory allocation pool = 2GB, initial memory allocation pool = 2GB
If you want to change this configuration, please check conf/iotdb-env.sh(Unix or OS X, if you use Windows, check conf/iotdb-env.bat).
输入行太长。
此时不应有&nbsp; "D:\XXX\WorkSpace\Project\incubator-iotdb\server\target\iotdb-server-0.10.0-SNAPSHOT\lib\slf4j-api-1.7.25.jar"。





------------------&nbsp;原始邮件&nbsp;------------------
发件人:&nbsp;"Xiangdong Huang"<sainthxd@gmail.com&gt;;
发送时间:&nbsp;2020年6月16日(星期二) 下午3:40
收件人:&nbsp;"dev"<dev@iotdb.apache.org&gt;;"可以扣篮但没必要"<971106266@qq.com&gt;;

主题:&nbsp;Re: 启动IoTDB服务时报错



Hi,
I can not see the info.. Can you send it again (with plain text)?
你好, 这个邮件看不到内容,可以再发一次么(邮件列表不支持图片)。也可以放在github 的issue上 (https://github.com/apache/incubator-iotdb/issues)




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

&nbsp;黄向东
清华大学 软件学院 









可以扣篮但没必要 <971106266@qq.com&gt; 于2020年6月16日周二 下午3:33写道:

Re: 启动IoTDB服务时报错

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

This is a common issue in Windows. It is because the max length of CMD.exe
command is 8191 in Windows, while Java programs have to put all jars into
its classpath.
In this version, you have to reduce the depth of iotdb folder, e.g., from
D:\xxx\....\...\iotdb to D:\iotdb.

这是windows操作系统的一个限制,命令行里的命令最长是8191个字符。但是java程序在拼接他的类路径时,使用的是绝对路径(从D:\开始的),最终启动命令超过了8191个字符。

目前版本的解决方法只能是把iotdb不要放在这么深的路径下(比如放到d:\iotdb下,在运行,就没问题了)。

后续会考虑进行两处修改:
1. 在拼接jar的路径时使用相对路径;
2. 尝试是否可以通过使用环境变量来解决。

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

 黄向东
清华大学 软件学院


可以扣篮但没必要 <97...@qq.com> 于2020年6月16日周二 下午3:42写道:

>
> D:\XXX\WorkSpace\Project\incubator-iotdb\server\target\iotdb-server-0.10.0-SNAPSHOT\sbin>start-server.bat
> ````````````````````````
> Starting IoTDB
> ````````````````````````
> "setting local JMX..."
> Detect 64-bit Java, maximum memory allocation pool = 2GB, initial memory
> allocation pool = 2GB
> If you want to change this configuration, please check
> conf/iotdb-env.sh(Unix or OS X, if you use Windows, check
> conf/iotdb-env.bat).
> 输入行太长。
> 此时不应有
> "D:\XXX\WorkSpace\Project\incubator-iotdb\server\target\iotdb-server-0.10.0-SNAPSHOT\lib\slf4j-api-1.7.25.jar"。
>
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Xiangdong Huang"<sa...@gmail.com>;
> *发送时间:* 2020年6月16日(星期二) 下午3:40
> *收件人:* "dev"<de...@qq.com>;
> *主题:* Re: 启动IoTDB服务时报错
>
> Hi,
>
> I can not see the info.. Can you send it again (with plain text)?
> 你好, 这个邮件看不到内容,可以再发一次么(邮件列表不支持图片)。也可以放在github 的issue上 (
> https://github.com/apache/incubator-iotdb/issues)
>
> Best,
> -----------------------------------
> Xiangdong Huang
> School of Software, Tsinghua University
>
>  黄向东
> 清华大学 软件学院
>
>
> 可以扣篮但没必要 <97...@qq.com> 于2020年6月16日周二 下午3:33写道:
>
>>
>>
>>

回复: 启动IoTDB服务时报错

Posted by 可以扣篮但没必要 <97...@qq.com>.
D:\XXX\WorkSpace\Project\incubator-iotdb\server\target\iotdb-server-0.10.0-SNAPSHOT\sbin&gt;start-server.bat
````````````````````````
Starting IoTDB
````````````````````````
"setting local JMX..."
Detect 64-bit Java, maximum memory allocation pool = 2GB, initial memory allocation pool = 2GB
If you want to change this configuration, please check conf/iotdb-env.sh(Unix or OS X, if you use Windows, check conf/iotdb-env.bat).
输入行太长。
此时不应有&nbsp; "D:\XXX\WorkSpace\Project\incubator-iotdb\server\target\iotdb-server-0.10.0-SNAPSHOT\lib\slf4j-api-1.7.25.jar"。





------------------&nbsp;原始邮件&nbsp;------------------
发件人:&nbsp;"Xiangdong Huang"<sainthxd@gmail.com&gt;;
发送时间:&nbsp;2020年6月16日(星期二) 下午3:40
收件人:&nbsp;"dev"<dev@iotdb.apache.org&gt;;"可以扣篮但没必要"<971106266@qq.com&gt;;

主题:&nbsp;Re: 启动IoTDB服务时报错



Hi,
I can not see the info.. Can you send it again (with plain text)?
你好, 这个邮件看不到内容,可以再发一次么(邮件列表不支持图片)。也可以放在github 的issue上 (https://github.com/apache/incubator-iotdb/issues)




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

&nbsp;黄向东
清华大学 软件学院 









可以扣篮但没必要 <971106266@qq.com&gt; 于2020年6月16日周二 下午3:33写道:

Re: 启动IoTDB服务时报错

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

I can not see the info.. Can you send it again (with plain text)?
你好, 这个邮件看不到内容,可以再发一次么(邮件列表不支持图片)。也可以放在github 的issue上 (
https://github.com/apache/incubator-iotdb/issues)

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

 黄向东
清华大学 软件学院


可以扣篮但没必要 <97...@qq.com> 于2020年6月16日周二 下午3:33写道:

>
>
>