This is an automated email from the ASF dual-hosted git repository.

jialiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ambari-metrics.git


The following commit(s) were added to refs/heads/master by this push:
     new 1d8d387  AMBARI-26327: Fix ambari-metrics-monitor start failure (#143)
1d8d387 is described below

commit 1d8d387f466181f80f8be590c8dda892bf26431b
Author: jialiang <[email protected]>
AuthorDate: Sun Mar 16 14:07:47 2025 +0800

    AMBARI-26327: Fix ambari-metrics-monitor start failure (#143)
---
 ambari-metrics-host-monitoring/src/main/python/core/emitter.py    | 8 ++++----
 ambari-metrics-host-monitoring/src/main/python/core/metering.py   | 2 +-
 .../src/main/python/core/metric_collector.py                      | 4 ++--
 .../src/main/python/core/spnego_kerberos_auth.py                  | 2 +-
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/ambari-metrics-host-monitoring/src/main/python/core/emitter.py 
b/ambari-metrics-host-monitoring/src/main/python/core/emitter.py
index 81f0655..d220b7a 100644
--- a/ambari-metrics-host-monitoring/src/main/python/core/emitter.py
+++ b/ambari-metrics-host-monitoring/src/main/python/core/emitter.py
@@ -21,10 +21,10 @@ limitations under the License.
 import logging
 import threading
 
-from security import CachedHTTPSConnection, CachedHTTPConnection
-from blacklisted_set import BlacklistedSet
-from config_reader import ROUND_ROBIN_FAILOVER_STRATEGY
-from spnego_kerberos_auth import SPNEGOKerberosAuth
+from resource_monitoring.core.security import CachedHTTPSConnection, 
CachedHTTPConnection
+from resource_monitoring.core.blacklisted_set import BlacklistedSet
+from resource_monitoring.core.config_reader import 
ROUND_ROBIN_FAILOVER_STRATEGY
+from resource_monitoring.core.spnego_kerberos_auth import SPNEGOKerberosAuth
 
 logger = logging.getLogger()
 
diff --git a/ambari-metrics-host-monitoring/src/main/python/core/metering.py 
b/ambari-metrics-host-monitoring/src/main/python/core/metering.py
index c6c629a..842bfa9 100644
--- a/ambari-metrics-host-monitoring/src/main/python/core/metering.py
+++ b/ambari-metrics-host-monitoring/src/main/python/core/metering.py
@@ -21,7 +21,7 @@ limitations under the License.
 import logging
 import time
 import json
-from instance_type_provider import HostInstanceTypeProvider
+from resource_monitoring.core.instance_type_provider import 
HostInstanceTypeProvider
 
 logger = logging.getLogger()
 
diff --git 
a/ambari-metrics-host-monitoring/src/main/python/core/metric_collector.py 
b/ambari-metrics-host-monitoring/src/main/python/core/metric_collector.py
index 8bd4e0d..f0318b6 100644
--- a/ambari-metrics-host-monitoring/src/main/python/core/metric_collector.py
+++ b/ambari-metrics-host-monitoring/src/main/python/core/metric_collector.py
@@ -20,8 +20,8 @@ limitations under the License.
 
 import logging
 from time import time
-from event_definition import HostMetricCollectEvent, ProcessMetricCollectEvent
-from metering import MeteringMetricHandler
+from resource_monitoring.core.event_definition import HostMetricCollectEvent, 
ProcessMetricCollectEvent
+from resource_monitoring.core.metering import MeteringMetricHandler
 
 logger = logging.getLogger()
 
diff --git 
a/ambari-metrics-host-monitoring/src/main/python/core/spnego_kerberos_auth.py 
b/ambari-metrics-host-monitoring/src/main/python/core/spnego_kerberos_auth.py
index bdb1d4b..401f66d 100644
--- 
a/ambari-metrics-host-monitoring/src/main/python/core/spnego_kerberos_auth.py
+++ 
b/ambari-metrics-host-monitoring/src/main/python/core/spnego_kerberos_auth.py
@@ -26,7 +26,7 @@ logger = logging.getLogger()
 try:
   import kerberos
 except ImportError:
-  from krberr import krberr as kerberos
+  from resource_monitoring.core import krberr as kerberos
   logger.warn('import kerberos exception: %s' % str(ImportError))
 pass
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to