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. > >  > > 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:  > > @guyuqi > > May I ask what's systemd version on openEuler? `/usr/bin/systemctl --version` The version of systemctl is v249. @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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
