Coder Social home page Coder Social logo

taosdata / tdengine Goto Github PK

View Code? Open in Web Editor NEW
22.8K 696.0 4.8K 359.16 MB

TDengine is an open source, high-performance, cloud native time-series database optimized for Internet of Things (IoT), Connected Cars, Industrial IoT and DevOps.

Home Page: https://tdengine.com

License: GNU Affero General Public License v3.0

CMake 0.59% Shell 2.04% C 87.53% C++ 8.96% Lua 0.01% Dockerfile 0.03% Batchfile 0.17% GDB 0.01% Yacc 0.57% Makefile 0.01% Roff 0.01% Inno Setup 0.03% Objective-C 0.04%
iot bigdata time-series database industrial-iot connected-vehicles monitoring tsdb tdengine sql

tdengine's Introduction

TDengine

Build Status Build status Coverage Status CII Best Practices
Twitter Follow YouTube Channel Discord Community LinkedIn StackOverflow

English | 简体中文

What Is TDengine?

TDengine is a next generation data historian purpose-built for Industry 4.0 and Industrial IoT. It enables real-time data ingestion, storage, analysis, and distribution of petabytes per day, generated by billions of sensors and data collectors. With TDengine making big data affordable and accessible, digital transformation has never been easier.

TDengine seamlessly integrates with AI-enabled analytics and other third-party tools, with its open ecosystem offering a holistic solution for manufacturers to drive actionable insights and operational efficiency in the IIoT era.

Our mission is to democratize industrial data systems and give people the freedom to use their data however it benefits them most. We are determined to unchain traditional industries from the legacy data infrastructure that has held back digital transformation and move toward a future in which silos are broken down, data is easily centralized and shared, and the benefits of revolutionary technologies like AI are as accessible to the industrial sector as they are to big tech.

Learn more about our offerings:

  • TDengine OSS, a high-performance open-source time-series database
  • TDengine Enterprise, a next generation data historian for Industry 4.0 and the Industrial IoT
  • TDengine Cloud, a fully managed cloud service for industrial big data

Documentation

For user manual, system design and architecture, please refer to TDengine Documentation.

Building

At the moment, TDengine server supports running on Linux/Windows/macOS systems. Any application can also choose the RESTful interface provided by taosAdapter to connect the taosd service . TDengine supports X64/ARM64 CPU, and it will support MIPS64, Alpha64, ARM32, RISC-V and other CPU architectures in the future. Right now we don't support build with cross-compiling environment.

You can choose to install through source code, container, installation package or Kubernetes. This quick guide only applies to installing from source.

TDengine provide a few useful tools such as taosBenchmark (was named taosdemo) and taosdump. They were part of TDengine. By default, TDengine compiling does not include taosTools. You can use cmake .. -DBUILD_TOOLS=true to make them be compiled with TDengine.

To build TDengine, use CMake 3.13.0 or higher versions in the project directory.

Install build tools

Ubuntu 18.04 and above or Debian

sudo apt-get install -y gcc cmake build-essential git libssl-dev libgflags2.2 libgflags-dev

Install build dependencies for taosTools

To build the taosTools on Ubuntu/Debian, the following packages need to be installed.

sudo apt install build-essential libjansson-dev libsnappy-dev liblzma-dev libz-dev zlib1g pkg-config

CentOS 7.9

sudo yum install epel-release
sudo yum update
sudo yum install -y gcc gcc-c++ make cmake3 gflags git openssl-devel
sudo ln -sf /usr/bin/cmake3 /usr/bin/cmake

CentOS 8/Fedora/Rocky Linux

sudo dnf install -y gcc gcc-c++ make cmake epel-release gflags git openssl-devel

Install build dependencies for taosTools on CentOS

CentOS 7.9

sudo yum install -y zlib-devel zlib-static xz-devel snappy-devel jansson jansson-devel pkgconfig libatomic libatomic-static libstdc++-static openssl-devel

CentOS 8/Fedora/Rocky Linux

sudo yum install -y epel-release
sudo yum install -y dnf-plugins-core
sudo yum config-manager --set-enabled powertools
sudo yum install -y zlib-devel zlib-static xz-devel snappy-devel jansson jansson-devel pkgconfig libatomic libatomic-static libstdc++-static openssl-devel

Note: Since snappy lacks pkg-config support (refer to link), it leads a cmake prompt libsnappy not found. But snappy still works well.

If the PowerTools installation fails, you can try to use:

sudo yum config-manager --set-enabled powertools

For CentOS + devtoolset

Besides above dependencies, please run following commands:

sudo yum install centos-release-scl
sudo yum install devtoolset-9 devtoolset-9-libatomic-devel
scl enable devtoolset-9 -- bash

macOS

brew install argp-standalone gflags pkgconfig

Setup golang environment

TDengine includes a few components like taosAdapter developed by Go language. Please refer to golang.org official documentation for golang environment setup.

Please use version 1.20+. For the user in China, we recommend using a proxy to accelerate package downloading.

go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct

The default will not build taosAdapter, but you can use the following command to build taosAdapter as the service for RESTful interface.

cmake .. -DBUILD_HTTP=false

Setup rust environment

TDengine includes a few components developed by Rust language. Please refer to rust-lang.org official documentation for rust environment setup.

Get the source codes

First of all, you may clone the source codes from github:

git clone https://github.com/taosdata/TDengine.git
cd TDengine

You can modify the file ~/.gitconfig to use ssh protocol instead of https for better download speed. You will need to upload ssh public key to GitHub first. Please refer to GitHub official documentation for detail.

[url "[email protected]:"]
    insteadOf = https://github.com/

Special Note

JDBC ConnectorGo ConnectorPython ConnectorNode.js ConnectorC# ConnectorRust Connector and Grafana plugin has been moved to standalone repository.

Build TDengine

On Linux platform

You can run the bash script build.sh to build both TDengine and taosTools including taosBenchmark and taosdump as below:

./build.sh

It equals to execute following commands:

mkdir debug
cd debug
cmake .. -DBUILD_TOOLS=true -DBUILD_CONTRIB=true
make

You can use Jemalloc as memory allocator instead of glibc:

apt install autoconf
cmake .. -DJEMALLOC_ENABLED=true

TDengine build script can detect the host machine's architecture on X86-64, X86, arm64 platform. You can also specify CPUTYPE option like aarch64 too if the detection result is not correct:

aarch64:

cmake .. -DCPUTYPE=aarch64 && cmake --build .

On Windows platform

If you use the Visual Studio 2013, please open a command window by executing "cmd.exe". Please specify "amd64" for 64 bits Windows or specify "x86" for 32 bits Windows when you execute vcvarsall.bat.

mkdir debug && cd debug
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" < amd64 | x86 >
cmake .. -G "NMake Makefiles"
nmake

If you use the Visual Studio 2019 or 2017:

please open a command window by executing "cmd.exe". Please specify "x64" for 64 bits Windows or specify "x86" for 32 bits Windows when you execute vcvarsall.bat.

mkdir debug && cd debug
"c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" < x64 | x86 >
cmake .. -G "NMake Makefiles"
nmake

Or, you can simply open a command window by clicking Windows Start -> "Visual Studio < 2019 | 2017 >" folder -> "x64 Native Tools Command Prompt for VS < 2019 | 2017 >" or "x86 Native Tools Command Prompt for VS < 2019 | 2017 >" depends what architecture your Windows is, then execute commands as follows:

mkdir debug && cd debug
cmake .. -G "NMake Makefiles"
nmake

On macOS platform

Please install XCode command line tools and cmake. Verified with XCode 11.4+ on Catalina and Big Sur.

mkdir debug && cd debug
cmake .. && cmake --build .

Installing

On Linux platform

After building successfully, TDengine can be installed by

sudo make install

Users can find more information about directories installed on the system in the directory and files section.

Installing from source code will also configure service management for TDengine.Users can also choose to install from packages for it.

To start the service after installation, in a terminal, use:

sudo systemctl start taosd

Then users can use the TDengine CLI to connect the TDengine server. In a terminal, use:

taos

If TDengine CLI connects the server successfully, welcome messages and version info are printed. Otherwise, an error message is shown.

On Windows platform

After building successfully, TDengine can be installed by:

nmake install

On macOS platform

After building successfully, TDengine can be installed by:

sudo make install

Users can find more information about directories installed on the system in the directory and files section.

Installing from source code will also configure service management for TDengine.Users can also choose to install from packages for it.

To start the service after installation, double-click the /applications/TDengine to start the program, or in a terminal, use:

sudo launchctl start com.tdengine.taosd

Then users can use the TDengine CLI to connect the TDengine server. In a terminal, use:

taos

If TDengine CLI connects the server successfully, welcome messages and version info are printed. Otherwise, an error message is shown.

Quick Run

If you don't want to run TDengine as a service, you can run it in current shell. For example, to quickly start a TDengine server after building, run the command below in terminal: (We take Linux as an example, command on Windows will be taosd.exe)

./build/bin/taosd -c test/cfg

In another terminal, use the TDengine CLI to connect the server:

./build/bin/taos -c test/cfg

option "-c test/cfg" specifies the system configuration file directory.

Try TDengine

It is easy to run SQL commands from TDengine CLI which is the same as other SQL databases.

CREATE DATABASE demo;
USE demo;
CREATE TABLE t (ts TIMESTAMP, speed INT);
INSERT INTO t VALUES('2019-07-15 00:00:00', 10);
INSERT INTO t VALUES('2019-07-15 01:00:00', 20);
SELECT * FROM t;
          ts          |   speed   |
===================================
 19-07-15 00:00:00.000|         10|
 19-07-15 01:00:00.000|         20|
Query OK, 2 row(s) in set (0.001700s)

Developing with TDengine

Client Libraries

TDengine provides abundant developing tools for users to develop on TDengine. Follow the links below to find your desired connectors and relevant documentation.

Contribute to TDengine

Please follow the contribution guidelines to contribute to the project.

Join the TDengine Community

For more information about TDengine, you can follow us on social media and join our Discord server:

tdengine's People

Contributors

54liuyao avatar afwerar avatar bgzhao66 avatar cadem avatar castermode avatar cosmic-jc avatar dapan1121 avatar duankuanjun avatar eliacy avatar gccgdb1234 avatar glzhao89 avatar guanshengliang avatar hjxilinx avatar hzcheng avatar jiacy-jcy avatar jtao1735 avatar kailixu avatar lichuang avatar liuyq-617 avatar localvar avatar plum-lihui avatar sangshuduo avatar shenglian-zhou avatar tomchon avatar wangmm0220 avatar wenzhouwww avatar xiao-yu-wang avatar xiaopingcs avatar yihaodeng avatar zyyang90 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tdengine's Issues

TDengine启动失败

启动失败了额

● taosd.service - TDengine server service
Loaded: loaded (/etc/systemd/system/taosd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2019-07-15 10:57:53 CST; 857ms ago
Process: 21981 ExecStart=/usr/bin/taosd (code=exited, status=255/EXCEPTION)
Main PID: 21981 (code=exited, status=255/EXCEPTION)

Jul 15 10:57:53 archlinux systemd[1]: taosd.service: Service RestartSec=100ms expired, scheduling restart.
Jul 15 10:57:53 archlinux systemd[1]: taosd.service: Scheduled restart job, restart counter is at 3.
Jul 15 10:57:53 archlinux systemd[1]: Stopped TDengine server service.
Jul 15 10:57:53 archlinux systemd[1]: taosd.service: Start request repeated too quickly.
Jul 15 10:57:53 archlinux systemd[1]: taosd.service: Failed with result 'exit-code'.
Jul 15 10:57:53 archlinux systemd[1]: Failed to start TDengine server service.

How to Build Cluster

Hi, I looked at the documentation carefully. Generally, such databases support clustering.

arm 平台下编译出错!

/usr/bin/cmake -H/data/TDengine -B/data/TDengine/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /data/TDengine/build/CMakeFiles /data/TDengine/build/CMakeFiles/progress.marks
/usr/bin/make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/data/TDengine/build'
/usr/bin/make -f deps/zlib-1.2.11/CMakeFiles/z.dir/build.make deps/zlib-1.2.11/CMakeFiles/z.dir/depend
make[2]: Entering directory '/data/TDengine/build'
cd /data/TDengine/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /data/TDengine /data/TDengine/deps/zlib-1.2.11 /data/TDengine/build /data/TDengine/build/deps/zlib-1.2.11 /data/TDengine/build/deps/zlib-1.2.11/CMakeFiles/z.dir/DependInfo.cmake --color=
Scanning dependencies of target z
make[2]: Leaving directory '/data/TDengine/build'
/usr/bin/make -f deps/zlib-1.2.11/CMakeFiles/z.dir/build.make deps/zlib-1.2.11/CMakeFiles/z.dir/build
make[2]: Entering directory '/data/TDengine/build'
[ 0%] Building C object deps/zlib-1.2.11/CMakeFiles/z.dir/src/adler32.c.o
cd /data/TDengine/build/deps/zlib-1.2.11 && /usr/bin/cc -DLINUX -D_LIBC_REENTRANT -D_LINUX -D_M_X64 -D_REENTRANT -D__USE_POSIX -I/data/TDengine/deps/zlib-1.2.11/./inc -g -std=gnu99 -Wall -fPIC -malign-double -Wno-char-subscripts -malign-stringops -msse4.2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILE -O0 -DDEBUG -std=gnu11 -o CMakeFiles/z.dir/src/adler32.c.o -c /data/TDengine/deps/zlib-1.2.11/src/adler32.c
cc: error: unrecognized command line option '-malign-double'; did you mean '-falign-jumps'?
cc: error: unrecognized command line option '-malign-stringops'; did you mean '-Wwrite-strings'?
cc: error: unrecognized command line option '-msse4.2'
deps/zlib-1.2.11/CMakeFiles/z.dir/build.make:65: recipe for target 'deps/zlib-1.2.11/CMakeFiles/z.dir/src/adler32.c.o' failed
make[2]: *** [deps/zlib-1.2.11/CMakeFiles/z.dir/src/adler32.c.o] Error 1
make[2]: Leaving directory '/data/TDengine/build'
CMakeFiles/Makefile2:106: recipe for target 'deps/zlib-1.2.11/CMakeFiles/z.dir/all' failed
make[1]: *** [deps/zlib-1.2.11/CMakeFiles/z.dir/all] Error 2
make[1]: Leaving directory '/data/TDengine/build'
Makefile:130: recipe for target 'all' failed
make: *** [all] Error 2

希望能变成一个可以用go编译的库

这么好的db,如果支持用go编译,并能作为一个库使用该多好,这样go应用程序可以将自己的应用和tdengine 编译在一起,只有一个可执行文件,就像leveldb一样可以作为一个库使用。

CMake Error with building

run the building step, then got some error.
cmake version:

➜  build git:(master) cmake --version
cmake version 3.13.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).

host info with macbookpro:

➜  build git:(master) ✗ uname -a
Darwin 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64

then with mkdir build && cd build got:

➜  build git:(master) cmake ..
-- Project source directory: /www/TDengine
-- Build Debug Version
-- Project binary output path: /www/TDengine/build
-- Executable files output path: /www/TDengine/build/build/bin
-- Project library output path: /www/TDengine/build/build/lib
-- Check targe platform x64, pass
-- Use the iconv functions in GLIBC
readlink: illegal option -- m
usage: readlink [-n] [file ...]
usage: dirname path
-- build version 
CMake Error at src/client/CMakeLists.txt:30 (SET_TARGET_PROPERTIES):
  SET_TARGET_PROPERTIES called with incorrect number of arguments.


-- MVN is installed and JDBC will be compiled
-- Configuring incomplete, errors occurred!
See also "/www/TDengine/build/CMakeFiles/CMakeOutput.log".

any help?

Build source code failure

Execution failed when I executed the build command :

cmake .. && cmake --build .
cmake version 3.10.2
OS version Ubuntu 18.04.2 LTS

Screenshot :

image

Error Log :

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --c++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --ec++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --c++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --ec++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --c++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --ec++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --c++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --ec++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --c++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --ec++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --c++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --ec++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --c++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --ec++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --c++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --ec++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --c++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --ec++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --c++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --ec++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --c++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --ec++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags:  

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: -c 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --c++ 

The output was:
No such file or directory


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
Build flags: 
Id flags: --ec++ 

The output was:
No such file or directory
```

给项目提出一些建议

一个开源项目要想快速传播和推广,离不开傻瓜化的安装文档,和方便的资源支持,为了方便我这样的低级程序员可以傻瓜上手,希望贵司做以下改进:
1安装文件可以支持wget +地址形式获得,而不是现在的输入邮箱,windows下载,然后还要上传到服务器,我知道你们想推广产品,不过开源版本还是建议变成wget获取的,这样会让更多我这样的沙雕程序员爱上项目,从而广泛使用。
2希望给予更详细的针对wget后的安装文档和相关的问题排查,解决办法。
3现在的使用方法介绍狠不错,api的使用案例建议更丰富一点,尤其是流行语言的api,希望更丰富,普通程序员,没有人会c的望能理解。
4希望尽快和spark,flink集成,并且有windows的仿真开发平台,方便沙雕普通程序员开发调试。

最后总结,任何一个开源项目,最后都是得普通程序员得天下,建议完毕,谢谢

test

As mentioned above

compile errror on centos6.8

[root@VM_007_centos build]# cmake —build .
……
/root/soft/TDengine/src/rpc/src/ttcpclient.c: In function 'taosOpenTcpClientConnection':
/root/soft/TDengine/src/rpc/src/ttcpclient.c:276: error: 'EPOLLWAKEUP' undeclared (first use in this function)
/root/soft/TDengine/src/rpc/src/ttcpclient.c:276: error: (Each undeclared identifier is reported only once
/root/soft/TDengine/src/rpc/src/ttcpclient.c:276: error: for each function it appears in.)
gmake[2]: Leaving directory /root/soft/TDengine/build' gmake[2]: *** [src/rpc/CMakeFiles/trpc.dir/src/ttcpclient.c.o] Error 1 gmake[1]: Leaving directory /root/soft/TDengine/build'
gmake[1]: *** [src/rpc/CMakeFiles/trpc.dir/all] Error 2
gmake: *** [all] Error 2
[root@VM_007_centos build]# cat /etc/iss
issue issue.net
[root@VM_007_centos build]# cat /etc/issue
CentOS release 6.8 (Final)
Kernel \r on an \m

[root@VM_007_centos build]# cmake --version
cmake version 2.8.12.2

TDengine connectors support c#

Microsoft releases Open source cross-platform .net core https://github.com/dotnet, Upcoming Release 3.0. As a popular language, c# has an advantage in cloud-native application development, Is there someone started to implement the c# connectors?

C client error: error while loading shared libraries: libtaos.so.1

os: ubuntu 16.04
version: 1.6.0.0 via deb downloaded from www.taosdata.com
source code: https://www.taosdata.com/blog/2019/07/10/%e4%bd%bf%e7%94%a8tdengine%e5%bf%ab%e9%80%9f%e6%90%ad%e5%bb%ba%e8%bd%a6%e8%81%94%e7%bd%91%e5%b9%b3%e5%8f%b0/

#include <stdio.h> 
#include <stdlib.h>
#include <string.h> 
#include <unistd.h> 
#include "time.h"
#include "taos.h"
int main(int argc, char *argv[]) {
   taos_init();
 
   TAOS *taos = taos_connect("127.0.0.1", "root", "taosdata", NULL, 0);
   if (taos == NULL) {
     printf("failed to connect to server, reason:%s\n", taos_errstr(taos));
     exit(1);
   }
 
   if (taos_query(taos, "create database db cache 8192 ablocks 2 tblocks 1000 tables 10000") != 0) {
     printf("failed to create database, reason:%s\n", taos_errstr(taos));
     exit(1);
   }
 
   taos_query(taos, "use db");
 
   char sql[65000] = "create table vehicles(ts timestamp, longitude bigint, latitude bigint, altitude int, direction int, velocity int) tags(card int, model binary(10))";
   if (taos_query(taos, sql) != 0) {
     printf("failed to create stable, reason:%s\n", taos_errstr(taos));
     exit(1);
   }
 
   int begin = time(NULL);
   for (int table = 0; table < 100000; ++table) {
     sprintf(sql, "create table v%d using vehicles tags(%d, 't%d')", table, table, table);
     if (taos_query(taos, sql) != 0) {
       printf("failed to create table t%d, reason:%s\n", table, taos_errstr(taos));
       exit(1);
     }
 
     for (int loop = 0; loop < 44; loop++) {   
       int len = sprintf(sql, "insert into v%d values", table);   
       for (int row = 0; row < 1000; row++) {     
         len += sprintf(sql + len, "(%ld,%d,%d,%d,%d,%d)", 1561910400000L + 60000L * (row + loop * 1000L), row, row, row, row, row);   
       }   
       if (taos_query(taos, sql) != 0) {     
         printf("failed to insert table t%d, reason:%s\n", table, taos_errstr(taos));   
       } 
     }
   }
   int end = time(NULL);
     printf("insert finished, time spend %d seconds", end - begin);
   }
}

error:

./test: error while loading shared libraries: libtaos.so.1: cannot open shared object file: No such file or directory

fix way:
sudo ln -s /usr/local/taos/driver/libtaos.so ./libtaos.so.1

关于数据的原子性

简单过了下代码, 库在做insert update之类的操作好像都没有日志相关的操作, 这个是怎么保证原子性的?

csv导入异常问题

场景一(字段包含字符串):
表结构:create table if not exists test_stat (its timestamp, name binary(40),succ_count int);
导入500万行记录,导入过程中出现:
data is already imported to file
decomp_size:-1, Error decompress in LZ4 algorithm!

场景二(字段不包含字符串):
表结构:create table if not exists test_stat (its timestamp,succ_count int);
导入1亿行记录,导入过程中出现:
taosd: /home/plum/git/tdengine/src/system/src/vnodeImport.c:96: vnodeCloseFileForImport: Assertion `pHinfo->compInfoOffset' failed.
Aborted

两种场景下导入失败后,DB异常退出后无法再启动。

请问一下,目前开源版本是否是内部的精简版本,觉得问题挺多的。并且实验过程中,还出现过一次段错误。

期盼您的答复:)

I got an error in make install

I have built successfully.
I can run the TDengine server and client via
./build/bin/taosd -c test/cfg
and
./build/bin/taos -c test/cfg.
But when I try to make install or sudo make install, it told me

bala bala......
Start to update TDEngine...
Removing any system startup links for /etc/init.d/taosd ...
cp: cannot stat ‘/home/wty/sda2/TDengine/packaging/tools/../rpm/init.d/taosd’: No such file or directory
update-rc.d: /etc/init.d/taosd: file does not exist

and failed.

I try to launch the TDengine in a vmware virual machine (Ubuntu 14.04), so I do not have much free space for it.
I have 10GB free space for the system root directory and I try to install the TDengine in another disk which has 5GB free space.

I can start up server via sudo taosd. But I don't known whether the fialling make install makes difference.

cntos7上从编译报错到编译成功的过程。

MVN is not installed and JDBC is not compiled.
安装了MVN和JDBC,仍然报错:
CMake Error at src/client/CMakeLists.txt:30 (SET_TARGET_PROPERTIES):
SET_TARGET_PROPERTIES called with incorrect number of arguments.

-- MVN is installed and JDBC will be compiled
-- Configuring incomplete, errors occurred!
See also "/home/TDengine-master/build/CMakeFiles/CMakeOutput.log".

Can support c#?

Thank you for the code.If the TDengine can support c# ,it will perfect.

官网RPM下载链问题

立即开始页面:输入邮箱地址后图标一直旋转,无返回,且未收到相关下载链接邮件。

centos 6.5 安装报错

您好
centos 6.5 出现如下报错信息
cd /home/sofe/Td/TDengine/TDengine-master/build/src/rpc && /usr/bin/cc -DLINUX -D_LIBC_REENTRANT -D_LINUX -D_M_X64 -D_REENTRANT -D__USE_POSIX -g -std=gnu99 -Wall -fPIC -malign-double -Wno-char-subscripts -malign-stringops -msse4.2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILE -O0 -DDEBUG -I/home/sofe/Td/TDengine/TDengine-master/src/inc -I/home/sofe/Td/TDengine/TDengine-master/src/rpc/./inc -o CMakeFiles/trpc.dir/src/ttcpclient.c.o -c /home/sofe/Td/TDengine/TDengine-master/src/rpc/src/ttcpclient.c
/home/sofe/Td/TDengine/TDengine-master/src/rpc/src/ttcpclient.c: In function ‘taosOpenTcpClientConnection’:
/home/sofe/Td/TDengine/TDengine-master/src/rpc/src/ttcpclient.c:276: error: ‘EPOLLWAKEUP’ undeclared (first use in this function)
/home/sofe/Td/TDengine/TDengine-master/src/rpc/src/ttcpclient.c:276: error: (Each undeclared identifier is reported only once
/home/sofe/Td/TDengine/TDengine-master/src/rpc/src/ttcpclient.c:276: error: for each function it appears in.)
gmake[2]: Leaving directory /home/sofe/Td/TDengine/TDengine-master/build' gmake[2]: *** [src/rpc/CMakeFiles/trpc.dir/src/ttcpclient.c.o] Error 1 gmake[1]: Leaving directory /home/sofe/Td/TDengine/TDengine-master/build'
gmake[1]: *** [src/rpc/CMakeFiles/trpc.dir/all] Error 2

.net core的驱动?

1、是否可以提供一下.net core的数据库驱动
2、是否有集群版本

ROS support?

Hi,
The data publishing from ros is also have timestamp and data.
So does it mean that the TDengine can replace the ros Subscriber and Publisher Node? And every sensor's data insert the super table, and When I need to analy the data, select it.
Maybe you can wrrite the document about ROS example or support, Thanks this outstanding project, it will be successful.

Yours sincerely,
Mikoy Chinese.

Taos shell startup failed

Taos shell startup failed

Version : tdengine-1.6.0.0.deb

OS version : Windows 10 WSL Ubuntu 18.04.2 LTS

Screenshot :

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.