fagnercarvalho commented on issue #2201:
URL: https://github.com/apache/iotdb/issues/2201#issuecomment-743801371


   Hey everyone!
   
   
   Unfortunately I didn't have success to show the `TOTAL_POINTS` stats.
   
   First I tried to run a Docker container from master but got this error 
message:
   
   ```
   docker: Error response from daemon: OCI runtime create failed: 
container_linux.go:349: starting container process caused "exec: 
\"/iotdb/sbin/start-server.sh\": stat /iotdb/sbin/start-server.sh: no such file 
or directory": unknown.
   ```
   
   Here are the commands I executed:
   ```
   docker build -t iotdb .
   docker run -d -p 0.0.0.0:6667:6667 -p 0.0.0.0:31999:31999 --name 
custom-iotdb-2 iotdb
   ```
   
   Here is the Dockerfile:
   ```
   FROM openjdk:11-jre-slim
   RUN apt update \
     # procps is for `free` command
     && apt install wget unzip lsof procps -y \
     && wget https://github.com/apache/iotdb/archive/master.zip \
     #&& wget 
https://downloads.apache.org/iotdb/0.11.1/apache-iotdb-0.11.1-bin.zip \
     # if you are in China, use the following URL
     #&& wget 
https://mirrors.tuna.tsinghua.edu.cn/apache/iotdb/0.11.0/apache-iotdb-0.11.0-bin.zip
 \
     && unzip master.zip \
     && rm master.zip \
     && mv iotdb-master /iotdb \
     && apt remove wget unzip -y \
     && apt autoremove -y \
     && apt purge --auto-remove -y \
     && apt clean -y
   EXPOSE 6667
   EXPOSE 31999
   EXPOSE 5555
   EXPOSE 8181
   VOLUME /iotdb/data
   VOLUME /iotdb/logs
   ENV PATH="/iotdb/sbin/:/iotdb/tools/:${PATH}"
   
   COPY iotdb-engine.properties /iotdb/conf/
   
   #ENTRYPOINT ["/iotdb/sbin/start-server.sh"]
   ```
   
   I also tried using version 0.11.1 released recently. This time I was able to 
run the CLI and run commands but I still can't see any stats besides `WAL` and 
`SYS`.
   
   Dockerfile:
   ```
   FROM openjdk:11-jre-slim
   RUN apt update \
     # procps is for `free` command
     && apt install wget unzip lsof procps -y \
     && wget 
https://downloads.apache.org/iotdb/0.11.1/apache-iotdb-0.11.1-bin.zip \
     # if you are in China, use the following URL
     #&& wget 
https://mirrors.tuna.tsinghua.edu.cn/apache/iotdb/0.11.0/apache-iotdb-0.11.0-bin.zip
 \
     && unzip apache-iotdb-0.11.1-bin.zip \
     && rm apache-iotdb-0.11.1-bin.zip \
     && mv apache-iotdb-0.11.1 /iotdb \
     && apt remove wget unzip -y \
     && apt autoremove -y \
     && apt purge --auto-remove -y \
     && apt clean -y
   EXPOSE 6667
   EXPOSE 31999
   EXPOSE 5555
   EXPOSE 8181
   VOLUME /iotdb/data
   VOLUME /iotdb/logs
   ENV PATH="/iotdb/sbin/:/iotdb/tools/:${PATH}"
   
   COPY iotdb-engine.properties /iotdb/conf/
   
   ENTRYPOINT ["/iotdb/sbin/start-server.sh"]
   ```
   
   In the iotdb-properties.conf I set:
   ```
   enable_stat_monitor=true
   enable_monitor_series_write=true
   enable_performance_stat=true
   enable_performance_tracing=true
   ```
   
   Here is the link for the complete iotdb-properties.conf: 
https://pastebin.com/CT7PUNpE.
   
   I tried running all the commands below but no stats besides `WAL` and `SYS` 
are available in the timeseries.
   
   ```
   set storage group to root.ln
   
   create timeseries root.ln.wf02.wt02.status with datatype=BOOLEAN,encoding=RLE
   create timeseries root.ln.wf02.wt02.temperature with 
datatype=FLOAT,encoding=RLE
   
   insert into root.ln.wf02.wt02(time,temperature,status) 
values(2017-11-01T16:37:50.000,30.34,true)
   insert into root.ln.wf02.wt02(time,temperature,status) 
values(2017-11-01T17:00:50.000,20.34,false)
   
   SELECT * FROM root.ln.wf02
   
   SELECT COUNT(*) FROM root.ln.wf02
   
   SHOW TIMESERIES
   ```
   
   What I am doing wrong?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to