uscxiexing commented on PR #1147: URL: https://github.com/apache/bigtop/pull/1147#issuecomment-1711042276
> > > Hi @MacChen01 @uscxiexing, Sorry for the late reply. > > > #1148, #1147 and #1143 have been verified on my local environment including building, toolchian images and smoke tests **separately**. > > > But the `postgresql-jdbc` service was deployed twice in [Ambari](https://github.com/apache/bigtop/pull/1147/files#diff-18357b51b0dfec2b4dafd4579f8d2469ef258984231733b80dbfc8aae5b93c02R28) and [Ranger](https://github.com/apache/bigtop/blob/master/bigtop-deploy/puppet/modules/ranger/manifests/init.pp#L35). > > > Running the smoke tests of Ranger and Ambari together would cause them to fail: > > > ``` > > > ./docker-hadoop.sh -d --create 3 --image bigtop/puppet:bgtp-openeuler-22.03 \ > > > --memory 16g --repo file:///bigtop-home/output --disable-gpg-check --enable-local-repo \ > > > --stack bigtop-utils,hdfs,yarn,spark,ambari,ranger \ > > > --smoke-tests spark,ambari,ranger > > > ``` > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ``` > > > Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation > > > Error: Error while evaluating a Resource Statement, Duplicate declaration: > > > Package[postgresql-jdbc] is already declared at (file: /bigtop-home/bigtop-deploy/puppet/modules/ambari/manifests/init.pp, line: 28); > > > cannot redeclare (file: /bigtop-home/bigtop-deploy/puppet/modules/ranger/manifests/init.pp, line: 35) > > > (file: /bigtop-home/bigtop-deploy/puppet/modules/ranger/manifests/init.pp, line: 35, column: 5) > > > (file: /bigtop-home/bigtop-deploy/puppet/manifests/cluster.pp, line: 208) on node dc86e902b9ac.bigtop.apache.org > > > ``` > > > > > > > postgresql > > > > > > > Hi @MacChen01 @uscxiexing, Sorry for the late reply. > > > #1148, #1147 and #1143 have been verified on my local environment including building, toolchian images and smoke tests **separately**. > > > But the `postgresql-jdbc` service was deployed twice in [Ambari](https://github.com/apache/bigtop/pull/1147/files#diff-18357b51b0dfec2b4dafd4579f8d2469ef258984231733b80dbfc8aae5b93c02R28) and [Ranger](https://github.com/apache/bigtop/blob/master/bigtop-deploy/puppet/modules/ranger/manifests/init.pp#L35). > > > Running the smoke tests of Ranger and Ambari together would cause them to fail: > > > ``` > > > ./docker-hadoop.sh -d --create 3 --image bigtop/puppet:bgtp-openeuler-22.03 \ > > > --memory 16g --repo file:///bigtop-home/output --disable-gpg-check --enable-local-repo \ > > > --stack bigtop-utils,hdfs,yarn,spark,ambari,ranger \ > > > --smoke-tests spark,ambari,ranger > > > ``` > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ``` > > > Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation > > > Error: Error while evaluating a Resource Statement, Duplicate declaration: > > > Package[postgresql-jdbc] is already declared at (file: /bigtop-home/bigtop-deploy/puppet/modules/ambari/manifests/init.pp, line: 28); > > > cannot redeclare (file: /bigtop-home/bigtop-deploy/puppet/modules/ranger/manifests/init.pp, line: 35) > > > (file: /bigtop-home/bigtop-deploy/puppet/modules/ranger/manifests/init.pp, line: 35, column: 5) > > > (file: /bigtop-home/bigtop-deploy/puppet/manifests/cluster.pp, line: 208) on node dc86e902b9ac.bigtop.apache.org > > > ``` > > > > > > @guyuqi Can you get us some suggestions for it? We installed the **_postgresql_** as the Ambari and Ranger need it for smoke test, where should we install it? > > The Ambari smoke tests have been passed in almost all distributions in Bigtop 3.2.1. `https://ci.bigtop.apache.org/job/Bigtop-3.2.1-smoke-tests/` > > It seems postgreSQL was integrated into Ambari package. May I ask why we need additionally add postgresql installation in Ambari? @MacChen01 @guyuqi Thank you for verifying. 1. when Individually verified ambari,if i not add init pgsql and got a error.The log is:  2. The error like pgsql service is not start,when I add the command "/usr/bin/pg_ctl initdb -D /var/lib/pgsql/data" to init pgsql in openeuler,the smoketest is ok. And other os did not needs. 3. I search some repea ambari setup pgsql source code .I use comand "/usr/bin/postgresql-setup --init" in fedorea ,it run healthy.  but when i use this comand in openeuler, i got a error,the log is  so i use the command "/usr/bin/pg_ctl initdb -D /var/lib/pgsql/data" to init pgsql in order to start pgsql. 4. I notice you run-in ambari and ranger.but start ambari and ranger somketest in fedora ,i got a error, pgsql init repea,the log is :  should we add this function to start ambari and ranger? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@bigtop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org