Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CH v20.11.3.3-stable] Can not create table in WSL(Ubuntu20.04 LTS) #17081

Closed
gmxyb opened this issue Nov 16, 2020 · 4 comments
Closed

[CH v20.11.3.3-stable] Can not create table in WSL(Ubuntu20.04 LTS) #17081

gmxyb opened this issue Nov 16, 2020 · 4 comments
Labels
comp-wsl Windows subsystem for Linux related issues invalid

Comments

@gmxyb
Copy link

gmxyb commented Nov 16, 2020

[CH v20.11.3.3-stable] in WSL(Ubuntu20.04 LTS)

  1. create database mydb;
  2. use mydb;
  3. create table mytab (id Int32, name String) Engine =...

ERROR:

Received exception from server (version 20.11.3):
Code: 425. DB::Exception: Received from localhost:9000. DB::Exception: Cannot rename /var/lib/clickhouse/store/a55/a553a4c0-5d11-4770-984b-975c26933f2e/mytab.sql.tmp to /var/lib/clickhouse/store/a55/a553a4c0-5d11-4770-984b-975c26933f2e/mytab.sql, errno: 38, strerror: Function not implemented.

If in "default" database, is ok.

@gmxyb gmxyb added the bug Confirmed user-visible misbehaviour in official release label Nov 16, 2020
@filimonov
Copy link
Contributor

We don't support WSL, sorry. Most probably it's some of POSIX features missing in the filesystem / or on WSL layer.

Use VM.

@filimonov filimonov added invalid and removed bug Confirmed user-visible misbehaviour in official release labels Nov 16, 2020
@l1t1
Copy link

l1t1 commented Nov 17, 2020

my test is ok. can create table and insert data.
btw, I am using wsl 2

@l1t1
Copy link

l1t1 commented Nov 17, 2020

lt@DESKTOP-RS3EG9A:~$ clickhouse-client -m
ClickHouse client version 20.11.3.3 (official build).
Connecting to localhost:9000 as user default.
Connected to ClickHouse server version 20.11.3 revision 54442.

DESKTOP-RS3EG9A.localdomain :) create database mydb;

CREATE DATABASE mydb

Query id: df069962-718d-447a-9c80-609e81a0c70b

Ok.

0 rows in set. Elapsed: 0.019 sec.

DESKTOP-RS3EG9A.localdomain :) use mydb;

USE mydb

Query id: 8cd47799-602d-469d-901c-67bbfa0f977d

Ok.

0 rows in set. Elapsed: 0.002 sec.

DESKTOP-RS3EG9A.localdomain :) create table mytab2 (id Int32, name String) Engine =MergeTree order by id;

CREATE TABLE mytab2
(
    `id` Int32,
    `name` String
)
ENGINE = MergeTree
ORDER BY id

Query id: 88c160e6-902b-4fd4-99de-aa39a26302e5

Ok.

0 rows in set. Elapsed: 0.006 sec.

DESKTOP-RS3EG9A.localdomain :) insert into mytab2 select number ,'name'||toString(number) from numbers(5);

INSERT INTO mytab2 SELECT
    number,
    concat('name', toString(number))
FROM numbers(5)

Query id: cdfa4bd8-349e-4de1-a51e-e613a8973872

Ok.

0 rows in set. Elapsed: 0.003 sec.

DESKTOP-RS3EG9A.localdomain :) select * from mytab2;

SELECT *
FROM mytab2

Query id: d0b41070-9357-422d-8451-f737fee2344c

┌─id─┬─name──┐
│  0 │ name0 │
│  1 │ name1 │
│  2 │ name2 │
│  3 │ name3 │
│  4 │ name4 │
└────┴───────┘

5 rows in set. Elapsed: 0.005 sec.

DESKTOP-RS3EG9A.localdomain :)
		

@gmxyb
Copy link
Author

gmxyb commented Nov 17, 2020

my test is ok. can create table and insert data.
btw, I am using wsl 2

O... I'm ws1, thank you !

@filimonov filimonov added the comp-wsl Windows subsystem for Linux related issues label Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-wsl Windows subsystem for Linux related issues invalid
Projects
None yet
Development

No branches or pull requests

3 participants