Advertisement
Guest User

Untitled

a guest
Mar 6th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 KB | None | 0 0
  1. time=2017-03-06T17:35:46.522Z | lvl=ERROR | corr=0767a9d2-d44e-4872-9ef4-b57d68ef7f88 | trans=0767a9d2-d44e-4872-9ef4-b57d68ef7f88 | srv=red | subsrv=/red/red | comp=cygnus-ngsi | op=processRollbackedBatches | msg=com.telefonica.iot.cygnus.sinks.NGSISink[394] : Persistence error. Message: -, Timed out after 30000 ms while waiting for a server that matches PrimaryServerSelector. Client view of cluster state is {type=UNKNOWN, servers=[{address=<STH-MONGO-IP>:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketReadException: Exception receiving message}, caused by {java.net.SocketException: Connection reset}}], Stack trace: [com.telefonica.iot.cygnus.sinks.NGSISTHSink.persistOne(NGSISTHSink.java:158), com.telefonica.iot.cygnus.sinks.NGSISTHSink.persistBatch(NGSISTHSink.java:93), com.telefonica.iot.cygnus.sinks.NGSISink.processRollbackedBatches(NGSISink.java:387), com.telefonica.iot.cygnus.sinks.NGSISink.process(NGSISink.java:370), org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:68), org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:147), java.lang.Thread.run(Thread.java:745)]
  2. time=2017-03-06T17:35:46.522Z | lvl=INFO | corr=0767a9d2-d44e-4872-9ef4-b57d68ef7f88 | trans=0767a9d2-d44e-4872-9ef4-b57d68ef7f88 | srv=red | subsrv=/red/red | comp=cygnus-ngsi | op=doRollbackAgain | msg=com.telefonica.iot.cygnus.sinks.NGSISink[458] : Rollbacking again (0767a9d2-d44e-4872-9ef4-b57d68ef7f88), this was retry #9
  3.  
  4. cygnus-ngsi.sources = http-source
  5. cygnus-ngsi.sinks = sth-sink
  6. cygnus-ngsi.channels = sth-channel
  7.  
  8. cygnus-ngsi.sources.http-source.type = org.apache.flume.source.http.HTTPSource
  9. cygnus-ngsi.sources.http-source.channels = sth-channel
  10. cygnus-ngsi.sources.http-source.port = 5050
  11. cygnus-ngsi.sources.http-source.handler = com.telefonica.iot.cygnus.handlers.NGSIRestHandler
  12. cygnus-ngsi.sources.http-source.handler.notification_target = /notify
  13. cygnus-ngsi.sources.http-source.handler.default_service = default
  14. cygnus-ngsi.sources.http-source.handler.default_service_path = /
  15. cygnus-ngsi.sources.http-source.interceptors = ts gi
  16. cygnus-ngsi.sources.http-source.interceptors.ts.type = timestamp
  17. cygnus-ngsi.sources.http-source.interceptors.gi.type = com.telefonica.iot.cygnus.interceptors.NGSIGroupingInterceptor$Builder
  18. cygnus-ngsi.sources.http-source.interceptors.gi.grouping_rules_conf_file = /opt/apache-flume/conf/grouping_rules.conf
  19.  
  20.  
  21. cygnus-ngsi.sinks.sth-sink.type = com.telefonica.iot.cygnus.sinks.NGSISTHSink
  22. cygnus-ngsi.sinks.sth-sink.channel = sth-channel
  23. #cygnus-ngsi.sinks.sth-sink.enable_encoding = false
  24. #cygnus-ngsi.sinks.sth-sink.enable_grouping = false
  25. #cygnus-ngsi.sinks.sth-sink.enable_name_mappings = false
  26. #cygnus-ngsi.sinks.sth-sink.enable_lowercase = false
  27. cygnus-ngsi.sinks.sth-sink.data_model = dm-by-entity
  28. cygnus-ngsi.sinks.sth-sink.mongo_hosts = <STH-MONGO-IP>:27017
  29. cygnus-ngsi.sinks.sth-sink.mongo_username =
  30. cygnus-ngsi.sinks.sth-sink.mongo_password =
  31. cygnus-ngsi.sinks.sth-sink.db_prefix = sth_
  32. cygnus-ngsi.sinks.sth-sink.collection_prefix = sth_
  33. cygnus-ngsi.sinks.sth-sink.resolutions = day,hour,minute
  34. #cygnus-ngsi.sinks.sth-sink.batch_size = 1
  35. #cygnus-ngsi.sinks.sth-sink.batch_timeout = 30
  36. #cygnus-ngsi.sinks.sth-sink.batch_ttl = 10
  37. #cygnus-ngsi.sinks.sth-sink.data_expiration = 0
  38. #cygnus-ngsi.sinks.sth-sink.ignore_white_spaces = true
  39.  
  40.  
  41. cygnus-ngsi.channels.sth-channel.type = com.telefonica.iot.cygnus.channels.CygnusMemoryChannel
  42. cygnus-ngsi.channels.sth-channel.capacity = 1000
  43. cygnus-ngsi.channels.sth-channel.transactionCapacity = 100
  44.  
  45. var config = {};
  46.  
  47. // STH server configuration
  48. //--------------------------
  49. config.server = {
  50.  
  51. host: '10.0.2.15',
  52.  
  53. port: '8666',
  54.  
  55.  
  56. defaultService: 'testservice',
  57.  
  58.  
  59. defaultServicePath: '/testservicepath',
  60.  
  61.  
  62. filterOutEmpty: 'true',
  63.  
  64. aggregationBy: ['day', 'hour', 'minute'],
  65.  
  66. temporalDir: 'temp'
  67. };
  68.  
  69. // Database configuration
  70. //------------------------
  71. config.database = {
  72.  
  73. dataModel: 'collection-per-entity',
  74. user: '',
  75.  
  76. password: '',
  77.  
  78. URI: 'localhost:27017',
  79.  
  80. replicaSet: '',
  81.  
  82. prefix: 'sth_',
  83.  
  84.  
  85. collectionPrefix: 'sth_',
  86.  
  87. poolSize: '5',
  88.  
  89.  
  90. shouldStore: 'both',
  91. truncation: {
  92.  
  93.  
  94. expireAfterSeconds: '0',
  95. size: '0',
  96.  
  97. max: '0'
  98. },
  99.  
  100. ignoreBlankSpaces: 'true',
  101. nameMapping: {
  102.  
  103. enabled: 'false',
  104.  
  105. configFile: './name-mapping.json'
  106. },
  107.  
  108. nameEncoding: 'false'
  109. };
  110.  
  111. // Logging configuration
  112. //------------------------
  113. config.logging = {
  114. level: 'info',
  115. NODE_ENV variable is set to 'development'.
  116.  
  117. format: 'pipe',
  118.  
  119.  
  120. proofOfLifeInterval: '60'
  121. };
  122.  
  123. module.exports = config;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement