http post - create table in postgresql fails - tablespace issue -


i trying create following table in postgresql

create table retail_demo.categories_dim_hawq (     category_id integer not null,     category_name character varying(400) not null ) (appendonly=true, compresstype=quicklz) distributed randomly; 

i getting following error:

error: cannot table space location content 0 table space 1663 (catalog.c:97)

i tried create new tablespace, got following:

error: syntax error @ or near "location" line 1: create tablespace moha location "/tmp/abc";

thanks in advance, moha.

i got answer you’ll need create filespace, tablespace, database, , create table follow following steps: 12. if on default database (using plsql command), can out root db user (gpadmin) using ctrl + d. 13. gpfilespace -o . 14. enter name of filespace: hawqfilespace3 15. choose filesystem name filespace: hdfs 16. enter replica num filespace: 0 17. specify hdfs location segments: bigdata01.intrasoft.com.jo:8020/xd note /xd 1 of hadoop directories has read write access. 18. system generate configuration command you, execute it. 19. copy , paste command , click on enter execute it. 20. file space created successfully. 21. connect database using psql command. 22. create tablespace on file space created. create tablespace hawqtablespace3 filespace hawqfilespace3; 23. create database on tablespace using command. create database hawqdatabase3 owner gpadmin template=template0 tablespace hawqtablespace3; 24. need connect database created, first click ctrl + d exit user in. 25. enter command psql hawqdatabase3


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -