2013-02-21 26 views
0

我正在使用石墨0.9.2。今天,我使用這個命令export PYTHONPATH=/home/local/ZOHOCORP/bharathi-1397/softwares/graphite/whisper-0.9.10; nohup ./bin/carbon-cache.py --debug start &開始碳。我得到了下面的錯誤。無法用石墨開始碳

Traceback (most recent call last): 
    File "./bin/carbon-cache.py", line 30, in <module> 
    run_twistd_plugin(__file__) 
    File "/opt/graphite/lib/carbon/util.py", line 92, in run_twistd_plugin 
    runApp(config) 
    File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 23, in runApp 
    _SomeApplicationRunner(config).run() 
    File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 386, in run 
    self.application = self.createOrGetApplication() 
    File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 446, in createOrGetApplication 
    ser = plg.makeService(self.config.subOptions) 
    File "/opt/graphite/lib/twisted/plugins/carbon_cache_plugin.py", line 21, in makeService 
    return service.createCacheService(options) 
    File "/opt/graphite/lib/carbon/service.py", line 127, in createCacheService 
    from carbon.writer import WriterService 
    File "/opt/graphite/lib/carbon/writer.py", line 34, in <module> 
    schemas = loadStorageSchemas() 
    File "/opt/graphite/lib/carbon/storage.py", line 139, in loadStorageSchemas 
    except InvalidConfiguration, e: 
NameError: global name 'InvalidConfiguration' is not defined 

我的storage-schemas.conf文件。

[carbon] 
pattern = ^carbon\. 
retentions = 60:90d 

[stats_schema_data_storage_retention] 
pattern = stats.* 
retentions = 1m:7d,5m:21d,1h:30d,1d:1y,1m:3y 

[service_registration] 
pattern = registration.* 
retentions = 1m:7d,5m:21d,1h:30d,1d:1y,1m:3y 

[server_load] 
priority=100 
pattern=^servers\. 
retentions=60:43200,900:350400 

請幫我解決問題。

+0

什麼是您的存儲schemas.conf是什麼樣子? – TheNameless 2013-02-21 12:45:15

+0

@TheNameless,我添加了我的存儲模式信息。 – kannanrbk 2013-02-21 16:27:30

回答

0

我認爲你的問題是你在你的storage-schemas.conf中指定兩次1分鐘數據的延長的事實。您已指定1m:7d以及1m:3y。

你得到的錯誤看起來像石墨源代碼中的錯誤。正如我已經看過代碼,它應該報告一些更有用的消息。也許這(最新的0.9.10是)固定在新版本中,否則也許這是一個好主意,報告這個bug;)

2

的問題是,你所定義的相同的保留 - 100萬:

保留期限= 1米:7D,5M:21D,1H:30D,1D:1Y,1米:3Y

這是錯誤的,在定義保持率設置你必須通過順序從更高的精度來定義它降低 - 所以直到1m:3y一切都很好。

你可以參考: https://github.com/tmm1/graphite/blob/master/whisper/whisper.py

見validateArchiveList方法描述:精度較低的檔案必須覆蓋較大的時間間隔比更高的精度檔案。

此外,我建議你閱讀以下內容:

http://graphite.wikidot.com/getting-your-data-into-graphite http://graphite.readthedocs.org/en/1.0/whisper.html#multi-archive-storage-and-retrieval-behavior