You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "MacChen01 (via GitHub)" <gi...@apache.org> on 2023/07/10 06:43:19 UTC

[GitHub] [bigtop] MacChen01 opened a new pull request, #1130: BIGTOP-3955: add support for phoenix

MacChen01 opened a new pull request, #1130:
URL: https://github.com/apache/bigtop/pull/1130

   ### Description of PR
   Add support for phoenix component, the point modifed is:
   
      select the python3 on openeuler.
   
   ### How was this patch tested?
   docker run --rm -v pwd:/home/bigtop --workdir /home/bigtop bigtop/slaves:trunk-openeuler-22.03-aarch64 bash -c '. /etc/profile.d/bigtop.sh; ./gradlew phoenix-pkg'
   
   ### For code changes:
   
   - [ ] Does the title or this PR starts with the corresponding JIRA issue id (BIGTOP-3955)
   - [ ] Make sure that newly added files do not have any licensing issues. When in doubt refer to https://www.apache.org/licenses/


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] MacChen01 commented on pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "MacChen01 (via GitHub)" <gi...@apache.org>.
MacChen01 commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1630196586

   > This PR: ![image](https://user-images.githubusercontent.com/20575685/252540840-7ae0e319-bc8e-4ae0-91a1-8d8cc6897b5b.png)
   > 
   > Based on `openEuler-support`: ![image](https://user-images.githubusercontent.com/20575685/252541033-8105f8f0-43d6-4b5e-8169-b843fd300ae5.png)
   > 
   > You should fist check out the branch to `openEuler-support` and then check out your local branch `openeuler_phoenix_dev`.
   
   sorry for that, it has changed to openEuler-support branch.


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] MacChen01 commented on pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "MacChen01 (via GitHub)" <gi...@apache.org>.
MacChen01 commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1645121011

   > `hasrestart`: _If you set hasrestart to true, Puppet will use the init script's restart command. You can provide an explicit command for restarting with the restart attribute. If you do neither, the service's stop and start commands will be used._
   > 
   > But the error log: `...PID * does not belong to service, ... PID file is not owned by ...` What is systemd version on your environment? (`systemd --version`) I'm sorry I don't understand that you add the `hasrestart` attribute to fix this issue.
   > 
   > I also have the concern that the hbase `init.pp` is the public puppet script for all Distros. Have you tested it for the other Distros?
   > 
   > In my opinion, please try to delete the original Hbase master PID file first and restart it in OpenEuler.
   
   ok, i will take your suggestion and verify it.


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] MacChen01 commented on pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "MacChen01 (via GitHub)" <gi...@apache.org>.
MacChen01 commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1650821632

   > Merged, thanks.
   
   Thanks for your review and advice.


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] MacChen01 commented on pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "MacChen01 (via GitHub)" <gi...@apache.org>.
MacChen01 commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1649172523

   > It's same with Ubuntu-22.04.
   For I'm not familar with openEuler and the codes would not affect the other Distro, I'm +1 with your code proposal.
   
   @guyuqi  the modify code is:
   commit: c2905d897ac80c900f9c0fda65526f7ba2cb36ae
   
   phoenix smoke test successful
   ![image](https://github.com/apache/bigtop/assets/11262916/6ec983fd-d9b1-412e-be4a-36a3896ae31f)
   
   


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] MacChen01 commented on pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "MacChen01 (via GitHub)" <gi...@apache.org>.
MacChen01 commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1641713110

   > > @MacChen01 Since #1131 was merged, could you please run the phoenix smoke tests on OpenEuler to verify this PR? Thanks.
   > 
   > We will verify it as soon as possible.
   
   we got a problem:
   1. During the phoinex smoke test, the hbase service will be restarted, the _**systemctl restart hbase-master**_ command will be executed, and the error log:
   ![image](https://github.com/apache/bigtop/assets/11262916/47943aa7-de92-487f-9033-4b7678001675)
   
   2. Enter the docker container and use the **_systemctl_** command to check the hbase service status, and find that the hbase-master and hbase-regionserver services are abnormal, and the error log:
   ![image](https://github.com/apache/bigtop/assets/11262916/77504749-7c04-4382-a617-22b6480e6910)
   
   3. After analysis the problem, using the _**hasrestart**_ parameter function in puppet to specify the display mode of service restart, and modify the hbase component _**bigtop-deploy/puppet/modules/hadoop_hbase/manifests/init.pp**_ file as follows:
   ![image](https://github.com/apache/bigtop/assets/11262916/2a81221a-0f28-4f6f-9ab4-4198217d8567)
   
   _Reference link_: https://www.puppet.com/docs/puppet/7/types/service.html#service-attribute-restart
   ![image](https://github.com/apache/bigtop/assets/11262916/9f89569c-d540-4593-884c-e25e42c8657a)
   
   4. The problem is resolved, and the smoke test result is successed in openEuler, Fedora is also ok using this way.
   ![image](https://github.com/apache/bigtop/assets/11262916/f09bc765-609c-449e-b6aa-6456d64a2e7e)
   
   
   @guyuqi pls help check it.


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] guyuqi commented on pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "guyuqi (via GitHub)" <gi...@apache.org>.
guyuqi commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1637294780

   @MacChen01 
   Since #1131 was merged, could you please run the phoenix smoke tests on OpenEuler to verify this PR? 
   Thanks. 


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] guyuqi commented on pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "guyuqi (via GitHub)" <gi...@apache.org>.
guyuqi commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1628502026

   1. Please rebase the PR to `openEuler-support`.
   2. What about adding `Provisioner` first?  
   We just add Hadoop build support for openEuler, but we have not verified hadoop smoke tests yet.
   If we add `Provisioner` first, we could verify the smoke tests for every components on openEuler.
   Thanks.


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] MacChen01 commented on pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "MacChen01 (via GitHub)" <gi...@apache.org>.
MacChen01 commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1629972249

   > 
   
   1. I create the different dev branch for different componet, why rebase the PR to openEuler-support? how?
   2. I can adding the Provisioner module, how to push it?
   3. can't see the openEuler-support in my local env.
   ![image](https://github.com/apache/bigtop/assets/11262916/6489e051-d7f2-465e-b84a-2d8e681a5ed6)
   
   @guyuqi 


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] MacChen01 commented on pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "MacChen01 (via GitHub)" <gi...@apache.org>.
MacChen01 commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1648986389

   > > The **_/sbin/service_** cmd is used by default to start component(such as hbase, the phoenix dep) in openEuler, but the phoenix's smoke test deploy use the **_systemctl_** cmd would got error above mentioned.
   > > ![image](https://user-images.githubusercontent.com/11262916/255546679-ad29468d-810a-4fd0-847c-dc1e76d239b0.png)
   > > I using the **_/sbin/service_** cmd to replace **_systemctl_** method on phoenix in openEuler is ok, code is:
   > > ```
   > >   class hbase_master_restart {
   > >     if ($operatingsystem == 'openEuler'){
   > >       exec { "hbase_master_restart":
   > >         command => "/sbin/service hbase-master restart",
   > >         path    => ['/usr/bin', '/bin','/sbin'],
   > >         cwd     => '/tmp',
   > >         timeout => 3000,
   > >         require => [
   > >         File['phoenix-server-lib'],
   > >           Service['hbase-master'],
   > >          ],
   > >      }
   > >     } else {
   > >         exec { "hbase_master_restart":
   > >           command => "systemctl restart hbase-master",
   > >           path    => ['/usr/bin', '/bin'],
   > >           cwd     => '/tmp',
   > >           timeout => 3000,
   > >           require => [
   > >             File['phoenix-server-lib'],
   > >             Service['hbase-master'],
   > >           ],
   > >         }
   > >     }
   > >   }
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > The smoke test is ok: ![image](https://user-images.githubusercontent.com/11262916/255548419-b251adcb-4e7b-4456-b988-2915f2b51430.png)
   > > @guyuqi
   > 
   > May I ask what's systemd version on openEuler? `/usr/bin/systemctl --version`
   
   The version of systemctl is v249. @guyuqi 
   ![image](https://github.com/apache/bigtop/assets/11262916/f7e095c1-81fa-4169-94e9-40f1203f3c9c)
   
   


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] guyuqi commented on pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "guyuqi (via GitHub)" <gi...@apache.org>.
guyuqi commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1630042821

   This PR: 
   ![image](https://github.com/apache/bigtop/assets/20575685/7ae0e319-bc8e-4ae0-91a1-8d8cc6897b5b)
   
   Based on `openEuler-support`:
   ![image](https://github.com/apache/bigtop/assets/20575685/8105f8f0-43d6-4b5e-8169-b843fd300ae5)
   
   You should fist check out the branch to `openEuler-support` and then check out your local branch `openeuler_phoenix_dev`.
   


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] MacChen01 commented on pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "MacChen01 (via GitHub)" <gi...@apache.org>.
MacChen01 commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1630230467

   > 2. What about adding `Provisioner` first?
   >    We just added Hadoop build support for openEuler, but we have not verified hadoop smoke tests yet.
   >    If we add `Provisioner` first, we could verify the smoke tests for every components on openEuler.
   >    Thanks. @MacChen01
   
   The code of `Provisioner` is:
   https://github.com/apache/bigtop/pull/1131


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] MacChen01 commented on pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "MacChen01 (via GitHub)" <gi...@apache.org>.
MacChen01 commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1647554191

   The **_/sbin/service_** cmd is used by default to start component(such as hbase, the phoenix dep) in openEuler, but the phoenix's smoke test deploy use the systemctl cmd would got error above mentioned.
   
   ![image](https://github.com/apache/bigtop/assets/11262916/ad29468d-810a-4fd0-847c-dc1e76d239b0)
   
   I using the **_/sbin/service_** cmd to replace **_systemctl_** method on phoenix in openEuler is ok, code is:
   ```
     class hbase_master_restart {
       if ($operatingsystem == 'openEuler'){
         exec { "hbase_master_restart":
           command => "/sbin/service hbase-master restart",
           path    => ['/usr/bin', '/bin','/sbin'],
           cwd     => '/tmp',
           timeout => 3000,
           require => [
           File['phoenix-server-lib'],
             Service['hbase-master'],
            ],
        }
       } else {
           exec { "hbase_master_restart":
             command => "systemctl restart hbase-master",
             path    => ['/usr/bin', '/bin'],
             cwd     => '/tmp',
             timeout => 3000,
             require => [
               File['phoenix-server-lib'],
               Service['hbase-master'],
             ],
           }
       }
     }
   
   ```
   The smoke test is ok:
   ![image](https://github.com/apache/bigtop/assets/11262916/b251adcb-4e7b-4456-b988-2915f2b51430)
   
   @guyuqi 
   


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] guyuqi commented on pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "guyuqi (via GitHub)" <gi...@apache.org>.
guyuqi commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1648926407

   > The **_/sbin/service_** cmd is used by default to start component(such as hbase, the phoenix dep) in openEuler, but the phoenix's smoke test deploy use the **_systemctl_** cmd would got error above mentioned.
   > 
   > ![image](https://user-images.githubusercontent.com/11262916/255546679-ad29468d-810a-4fd0-847c-dc1e76d239b0.png)
   > 
   > I using the **_/sbin/service_** cmd to replace **_systemctl_** method on phoenix in openEuler is ok, code is:
   > 
   > ```
   >   class hbase_master_restart {
   >     if ($operatingsystem == 'openEuler'){
   >       exec { "hbase_master_restart":
   >         command => "/sbin/service hbase-master restart",
   >         path    => ['/usr/bin', '/bin','/sbin'],
   >         cwd     => '/tmp',
   >         timeout => 3000,
   >         require => [
   >         File['phoenix-server-lib'],
   >           Service['hbase-master'],
   >          ],
   >      }
   >     } else {
   >         exec { "hbase_master_restart":
   >           command => "systemctl restart hbase-master",
   >           path    => ['/usr/bin', '/bin'],
   >           cwd     => '/tmp',
   >           timeout => 3000,
   >           require => [
   >             File['phoenix-server-lib'],
   >             Service['hbase-master'],
   >           ],
   >         }
   >     }
   >   }
   > ```
   > 
   > The smoke test is ok: ![image](https://user-images.githubusercontent.com/11262916/255548419-b251adcb-4e7b-4456-b988-2915f2b51430.png)
   > 
   > @guyuqi
   
   May I ask what's systemd version on openEuler?
   `/usr/bin/systemctl --version`
   


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] MacChen01 commented on pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "MacChen01 (via GitHub)" <gi...@apache.org>.
MacChen01 commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1644876058

   > > > @MacChen01 Since #1131 was merged, could you please run the phoenix smoke tests on OpenEuler to verify this PR? Thanks.
   > > 
   > > 
   > > We will verify it as soon as possible.
   > 
   > we got a problem:
   > 
   > 1. During the phoinex smoke test, the hbase service will be restarted, the _**systemctl restart hbase-master**_ command will be executed, and the error log:
   >    ![image](https://user-images.githubusercontent.com/11262916/254522993-47943aa7-de92-487f-9033-4b7678001675.png)
   > 2. Enter the docker container and use the **_systemctl_** command to check the hbase service status, and find that the hbase-master and hbase-regionserver services are abnormal, and the error log:
   >    ![image](https://user-images.githubusercontent.com/11262916/254523162-77504749-7c04-4382-a617-22b6480e6910.png)
   > 3. After analysis the problem, using the _**hasrestart**_ parameter function in puppet to specify the display mode of service restart, and modify the hbase component _**bigtop-deploy/puppet/modules/hadoop_hbase/manifests/init.pp**_ file as follows:
   >    ![image](https://user-images.githubusercontent.com/11262916/254523431-2a81221a-0f28-4f6f-9ab4-4198217d8567.png)
   > 
   > _Reference link_: https://www.puppet.com/docs/puppet/7/types/service.html#service-attribute-restart ![image](https://user-images.githubusercontent.com/11262916/254523647-9f89569c-d540-4593-884c-e25e42c8657a.png)
   > 
   > 4. The problem is resolved, and the smoke test result is successed in openEuler, Fedora is also ok using this way.
   >    ![image](https://user-images.githubusercontent.com/11262916/254523800-f09bc765-609c-449e-b6aa-6456d64a2e7e.png)
   > 
   > @guyuqi pls help check it.
   
   @guyuqi pls review the solution.


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] MacChen01 commented on pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "MacChen01 (via GitHub)" <gi...@apache.org>.
MacChen01 commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1639138411

   > @MacChen01 Since #1131 was merged, could you please run the phoenix smoke tests on OpenEuler to verify this PR? Thanks.
   
   We will verify it as soon as possible.


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] guyuqi commented on pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "guyuqi (via GitHub)" <gi...@apache.org>.
guyuqi commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1644919829

   `hasrestart`: 
   _If you set hasrestart to true, Puppet will use the init script's restart command. You can provide an explicit command for restarting with the restart attribute. If you do neither, the service's stop and start commands will be used._
   
   But the error log: `...PID * does not belong to service, ... PID file is not owned by ...` 
   What is systemd version on your environment? (`systemd --version`)
   I'm sorry I don't understand that you add the `hasrestart` attribute to fix this issue.
   
   I also have the concern that the hbase `init.pp` is the public puppet script for all Distros. 
   Have you tested it for the other Distros?
   
   In my opinion, please try to delete the original Hbase master PID file first and restart it in OpenEuler. 
   
   


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] guyuqi merged pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "guyuqi (via GitHub)" <gi...@apache.org>.
guyuqi merged PR #1130:
URL: https://github.com/apache/bigtop/pull/1130


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [bigtop] guyuqi commented on pull request #1130: BIGTOP-3955: add support for phoenix

Posted by "guyuqi (via GitHub)" <gi...@apache.org>.
guyuqi commented on PR #1130:
URL: https://github.com/apache/bigtop/pull/1130#issuecomment-1649553503

   Merged, thanks.


-- 
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-unsubscribe@bigtop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org