Re: The structure of distribution

2022-07-07 Thread Jialin Qiao
Hi,

Apart from the start-server.sh, The start-cli.sh is also weird in datanode 
folder.

Besides, we may have start-all.sh in the future. There may need a sbin in the 
parent folder.

Jialin Qiao

On 2022/07/05 09:54:25 SpriCoder wrote:
> Hi all,
> 
> Currently, we have confignode and datanode folder in the distribution. Which 
> has conf, sbin, and will store the default folder of data and system. And 
> there is a need to refactor distribution structure.
> 
> I think there are two choices:
> 
> 1. remove the confignode and datanode folder, and combine their script and 
> configuration files into the conf and sbin under the root. In this way all 
> folder generated by confignode will be put into config folder, and all folder 
> generated by confignode will be put into data folder.
> 
> 2. use confignode and datanode folder to manage their script and 
> configuration files, like: confignode/sbin, confignode/conf, datanode/sbin, 
> datanode/conf, etc. In this way all folder generated by confignode will be 
> put into confignode folder and all folder generated by datanode will be put 
> into datanode folder.
>  
> 
> 
> 
> What's your opinion? Looking forward to your reply.
> 
> 
> Best,
> 
> ---
> 
> Hongyin Zhang


Re:The structure of distribution

2022-07-07 Thread SpriCoder
I think maybe the binary name can still 
called"apache-iotdb-{version}-bin-all.zip" if we add standalone folder to 
store our singleton version?
?? confignode
   ?? conf
   ?? data
   ?? ext
   ?? logs
   ?? sbin ?? datanode
   ?? conf
   ?? data
   ?? logs
   ?? sbin
?? standalone
   ?? conf
   ?? data
   ?? logs
   ?? sbin

?? lib
As for the second question, I think maybe we can add sbin folder in root folder 
to hold cluster-related scripts like:
?? sbin
?? confignode
   ?? conf
   ?? data
   ?? ext
   ?? logs
   ?? sbin ?? datanode
   ?? conf
   ?? data
   ?? logs
   ?? sbin
?? standalone
   ?? conf
   ?? data
   ?? logs
   ?? sbin

?? lib


What's your opinion? Looking forward to your suggestion!



Best,

---

Hongyin Zhang



--Original--
From:   
 "SpriCoder"



Re: The structure of distribution

2022-07-07 Thread Xiangdong Huang
Hi,
if we use the structure 2, the binary release name
"apache-iotdb-{version}-bin-all.zip" should be changed
(to "apache-iotdb-{version}-bin-cluster.zip". As the structure does
not fit the singleton release version.

The start-server.sh (or start-new-server.sh) script should also be
removed. It will be confused that
why I need to use "datanode" or "confignode" if I want to just use a
start-new-server

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

 黄向东
清华大学 软件学院

SpriCoder  于2022年7月6日周三 17:08写道:
>
> Get it!
>
>
>
>
> --Original--
> From: 
>"SpriCoder"
> 
>  Date:Tue, Jul 5, 2022 05:54 PM
> To:"dev"
> Subject:The structure of distribution
>
>
>
> Hi all,
>
> Currently, we have confignode and datanode folder in the distribution. Which 
> has conf, sbin, and will store the default folder of data and system. And 
> there is a need to refactor distribution structure.
>
> I think there are two choices:
>
> 1. remove the confignode and datanode folder, and combine their script and 
> configuration files into the conf and sbin under the root. In this way all 
> folder generated by confignode will be put into config folder, and all folder 
> generated by confignode will be put into data folder.
>
> 2. use confignode and datanode folder to manage their script and 
> configuration files, like: confignode/sbin, confignode/conf, datanode/sbin, 
> datanode/conf, etc. In this way all folder generated by confignode will be 
> put into confignode folder and all folder generated by datanode will be put 
> into datanode folder.
>
>
>
>
> What's your opinion? Looking forward to your reply.
>
>
> Best,
>
> ---
>
> Hongyin Zhang