2017-05-04 8 views
0

두 개의 노드가 있고 원격 테이블을 만들려고합니다.monetdb 원격 테이블 : 등록 할 수 없습니다.

$ monetdbd create /opt/mdbdata/dbfarm 
$ monetdbd set listenaddr=0.0.0.0 /opt/mdbdata/dbfarm 
$ monetdbd start /opt/mdbdata/dbfarm 

첫 번째 호스트에 : 두 번째에

$ monetdb create w0 
$ monetdb release w0 

: 처음에

$ monetdb create mst 
$ monetdb release mst 
$ mclient -u monetdb -d mst 
password: 
Welcome to mclient, the MonetDB/SQL interactive terminal (Dec2016-SP4) 
Database: MonetDB v11.25.21 (Dec2016-SP4), 'mapi:monetdb://nkcdev11:50000/mst' 
Type \q to quit, \? for a list of available commands 
auto commit mode: on 
sql>create table usr (id integer not null, name text not null); 
operation successful (0.895ms) 
sql>insert into usr values(1,'abc'),(2,'def'); 
2 affected rows (0.845ms) 
sql>select * from usr; 
+------+------+ 
| id   | name | 
+======+======+ 
|    1 | abc  | 
|    2 | def  | 
+------+------+ 
2 tuples (0.652ms) 
sql> 

: 각 호스트에서

: 설정하려면 나는 다음을 수행

$ mclient -u monetdb -d w0 
password: 
Welcome to mclient, the MonetDB/SQL interactive terminal (Dec2016-SP4) 
Database: MonetDB v11.25.21 (Dec2016-SP4), 'mapi:monetdb://nkcdev10:50000/w0' 
Type \q to quit, \? for a list of available commands 
auto commit mode: on 
sql>create remote table usr_rmt (id integer not null, name text not null) on 'mapi:monetdb://nkcdev11:50000/mst'; 
operation successful (1.222ms) 
sql>select * from usr_rmt; 
(mapi:monetdb://[email protected]/mst) Cannot register   
project (
table(sys.usr_rmt) [ usr_rmt.id NOT NULL, usr_rmt.name NOT NULL ] COUNT  
) [ usr_rmt.id NOT NULL, usr_rmt.name NOT NULL ] REMOTE mapi:monetdb://nkcdev11:50000/mst 
sql> 
$ 
$ monetdb discover 
             location 
mapi:monetdb://nkcdev10:50000/w0 
mapi:monetdb://nkcdev11:50000/mst 

누구든지 올바른 방향으로 나를 움직일 수 있습니까?

[편집 - 해결은]

문제는 자초, 원격 테이블 이름이 로컬 테이블 이름과 동일해야했다, 나는 원격 테이블 이름으로 usr_rmt했다.

답변

0

첫눈에 당신이해야 할 일은해야합니다.

최근 원격 테이블 액세스와 비슷한 문제가 있었지만 출시되지 않은 버전 (bug 6289 참조)과 비슷한 문제가있었습니다. 버그 보고서에 언급 된 MonetDB 버전 번호가 잘못되었습니다. 발생한 문제가 동일한 기본 이슈 일 수도 같지 않을 수도 있습니다.

주말이 지나면 -SP4 및 개발 버전에서 예제를 재현 할 수 있는지 확인합니다.

조에리

+0

조에리 감사합니다. –