|
From: Julian <jul...@gm...> - 2013-10-07 14:27:54
|
I can not just issue "add coordinator master",it alway asked me for more here is my step: # Deploy binaries PGXC$ depoly all #initialize everyting: one GTM Master, three GTM_Proxy, three coordinator, three datanode PGXC$ init all .... PGXC$ Createdb pgxc .... PGXC$ Psql pgxc=# select * from pgxc_node; node_name | node_type | node_port | node_host | nodeis_primary | nodeis_preferred | node_id .... pgxc=# create table user_info_hash(id int primary key,firstname text,lastname text,info text) distribute by hash(id); NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "user_info_hash_pkey" for table "user_info_hash" CREATE TABLE ... PGXC$ deploy node4 PGXC$ add datanode master datanode4 *ERROR: please specify the host for the datanode masetr* PGXC$ add datanode master datanode4 node4 20008 /opt/pgxc/nodes/dn_master *ERROR: sorry found some inconflicts in datanode master configuration.* -------------------------------------------------------------- 2. and i found when the dump file contain table with CREATE TABLE user_info_hash ( id integer NOT NULL, firstname text, lastname text, info text ) DISTRIBUTE BY HASH (id) TO NODE (datanode1,datanode2,datanode3); is alway failed to add new coordinator but with this CREATE TABLE user_id ( id integer NOT NULL ) DISTRIBUTE BY HASH (id) TO NODE (dn2,dn1,dn3); it's sucessed to add the new coordinator to the cluster 於 7/10/2013 18:18, Koichi Suzuki 提到: > I found your configuration, in terms of owner and user, is the same as > my demonstration scenario. Then what you should do is: > > 1. Log in to your operating system as pgxcUser, > 2. Initialize Postgres-XC cluster with "init all" command of pgxc_ctl, > > Then the database user $pgxcOwner should have been created and you > don't have to worry about it. When you add a coordinator, simply issue > "add coordinator master" command. It should work. If you have any > other issue, please let me know. > > My pgxc_ctl demonstration scenario will be found at > https://sourceforge.net/apps/mediawiki/postgres-xc/index.php?title=PGOpen2013_Postgres_Open_2013 > > The configuration is with full slaves, which you can disable. The demo > adds a datanode, not a coordinator. I believe there's no significant > differences. > > Regards; > > --- > Koichi Suzuki > > > 2013/10/7 Koichi Suzuki <koi...@gm... > <mailto:koi...@gm...>> > > I understood the situation. Could you let me know if pgxc is not > the operating system user name you are using? If so, I will run > the test with this situation and see what is going to happen. > Maybe a bug (not Postgres-XC core, but pgxc_ctl). If pgxc is the > operating system user you are using, then there could be another > cause. Also, please let me know your setting of pgxcUser in > pgxc_ctl.conf? > > Best; > > --- > Koichi Suzuki > > > 2013/10/7 Julian <jul...@gm... <mailto:jul...@gm...>> > > Sorry, i found i have already config pgxcOwner=pgxc in > pxc_ctl.conf. > > And i forgot to mention there's something strange about to add > new coordinator, > i can’t add coord4 by "add coordinator master coord4 node4 > 20004 20010 /opt/pgxc/nodes/coord” > > it will show me > ERROR: sorry found some inconflicts in coordinator master > configuration.PGXC$ > > unless i add coord4 to pgxc_ctl.conf and remove it at PGXC shell > PGXC$ remove coordinator master coord4 > ERROR: PGXC Node coord4: object not defined > ERROR: PGXC Node coord4: object not defined > ERROR: PGXC Node coord4: object not defined > > Is it normal ? > > attach file is my pgxc config > > Julian > 使用 Sparrow <http://www.sparrowmailapp.com/?sig> 發信 > > On 2013年10月7日Monday at 下午5:31, Koichi Suzuki wrote: > >> Okay. I'm wondering why internal pg_restore complains pgxc >> already exists. If you do not specify pgxc in pgxc_ctl and >> created it manually, newly-craeted node should not contain >> the role pgxc, though we have different massage. >> >> Could you let me know if you have any idea? >> >> Best; >> >> --- >> Koichi Suzuki >> >> >> 2013/10/7 Julian <jul...@gm... <mailto:jul...@gm...>> >>> I did not specify pgxc as a database owner, but i create >>> user pgxc to do these job. >>> >>> -- >>> Julian >>> 使用 Sparrow <http://www.sparrowmailapp.com/?sig> 發信 >>> >>> On 2013年10月7日Monday at 下午4:44, Koichi Suzuki wrote: >>> >>>> Did you specify pgxc as a database owner >>> >> > > > |