hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leon Zhang <leonca...@gmail.com>
Subject Re: hawq init cluster failed
Date Sat, 21 Nov 2015 02:08:28 GMT
Oops, this is my bad. The previous master is still running. After I kill
it, and cleanup the master/segment directory, it works now.

On Fri, Nov 20, 2015 at 6:10 PM, Leon Zhang <leoncamel@gmail.com> wrote:

> Hi, HAWQ Developers:
>
>    I pulled the latest 2.0-beta code. During the step "hawq init cluster",
> I got a error like "Create filespace failed, please check your hdfs
> settings".
>
>    And I check the hawqAdminLogs, it shows that:
>
> WARNING: enabling "trust" authentication for local connections
> You can change this by editing pg_hba.conf or using the -A option the
> next time you run initdb.
>
> Success. You can now start the database server using:
>
>     /mnt/xiaolin/dev_hawq/hawq-2.0-dev/bin/postgres -D
> /mnt/xiaolin/hawq-data-directory/masterdd
> or
>     /mnt/xiaolin/dev_hawq/hawq-2.0-dev/bin/pg_ctl -D
> /mnt/xiaolin/hawq-data-directory/masterdd -l logfile start
>
> waiting for server to start... done
> server started
> ERROR:  filespace "dfs_system" already exists
> Create filespace failed, please check your hdfs settings
> 20151120:17:32:26:530020 hawq_init:dserver1:xiaolin-[ERROR]:-Master init
> failed, exit
>
>
>     Then, I connect to the master with psql, the filespace about
> "template1" is:
>
> template1=# select * from pg_filespace;
>    fsname   | fsowner | fsfsys | fsrep
> ------------+---------+--------+-------
>  pg_system  |      10 |      0 |     0
>  dfs_system |      10 |  10896 |     0
> (2 rows)
>
> template1=# select * from pg_filespace_entry;
>  fsefsoid | fsedbid | fselocation
> ----------+---------+-------------
> (0 rows)
>
>    It seems the hawqinit.sh will create the filespace "dfs_system",
> https://github.com/apache/incubator-hawq/blob/master/tools/bin/lib/hawqinit.sh#L196
> . But it has been created somewhere.
>
>     Any clue for this issue?
>
> Thanks in advance.
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message