-
Notifications
You must be signed in to change notification settings - Fork 31
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
Is there is any example or a guide for flink sql? #88
Comments
Could you please take a look at this question? @Nicole00 thanks! |
@lichunown please refer Line 112 in 24a7514
|
Thanks, I found the sulotions. Here are my summaries. Taking the For CREATE TABLE nba_player (
`vid` VARCHAR(32),
`age` BIGINT,
`name` VARCHAR(100)
) WITH (
'connector' = 'nebula',
'meta-address' = '127.0.0.1:9559',
'graph-address' = '127.0.0.1:9669',
'username' = 'root',
'password' = 'nebula',
'graph-space' = 'nba',
'data-type' = 'vertex',
'label-name' = 'player'
); For CREATE TABLE nba_like (
`sid` VARCHAR(32),
`did` VARCHAR(32),
`rid` BIGINT,
`likeness` BIGINT
) WITH (
'connector' = 'nebula',
'meta-address' = '127.0.0.1:9559',
'graph-address' = '127.0.0.1:9669',
'username' = 'root',
'password' = 'nebula',
'graph-space' = 'nba',
'data-type' = 'edge',
'label-name' = 'like',
'src-id-index' = '0',
'dst-id-index' = '1',
'rank-id-index' = '2'
); Then, I can use sql to operate the database. select * from nba_player;
select * from nba_like;
insert into nba_player values ('awtf', 18, 'awtf');
insert into nba_player values ('aaaaaaaaaaaa', 18, 'aaaaaaaaaaaaaaaa');
insert into nba_like values ('awtf', 'aaaaaaaaaaaa', 0, 99); |
General Question
I have compiled this nebula-flink-connector (v3.5) to a jar package follows 编译 Nebula Flink Connector, and put it into
[flink_server_path]/lib
.Then, I try to execute the sql code from
flink/bin/sql-client.sh
.[In nebula], I have a schema as follows:
[In Flink], I tried to connect the nebula server vias the following codes:
However, where I tried to select the data, it raise
NullPointerException
:By the way, how can I insert data into nebula? I have tried with #57. But the
write-mode
doesn't support.So, is there any guide or an examples?
eg:
how to access the vertex or edges? And whether the attribute
id(vertex)
effects the results?The text was updated successfully, but these errors were encountered: