# Licensed to the Apache SoftwareFoundation (ASF) under one
# or more contributor licenseagreements. See the NOTICE file
# distributed with this work for additionalinformation
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version2.0 (the
# "License"); you may not usethis file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law oragreed to in writing,
# software distributed under the License isdistributed on an
# "AS IS" BASIS, WITHOUTWARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissionsand limitations
# under the License.
# The configuration file needs to definethe sources,
# the channels and the sinks.
# Sources, channels and sinks are definedper agent,
# in this case called 'agent'
# For each one of the sources, the type isdefined
agenta.sources.loggerSource.type = exec agenta.sources.loggerSource.command = tail -F <logpath>
# The channel can be defined as follows.
agenta.sources.loggerSource.channels =memoryChannel
# Each sink's type must be defined
agenta.sinks.loggerSink.type = avro agenta.sinks.loggerSink.hostname = <hdfs serverip>
agenta.sinks.loggerSink.port = 4141
#Specify the channel the sink should use
agenta.sinks.loggerSink.channel =memoryChannel
# Each channel's type is defined.
agenta.channels.memoryChannel.type = memory
# Other config values specific to each typeof channel(sink or source)
# can be defined as well
# In this case, it specifies the capacityof the memory channel
agenta.channels.memoryChannel.capacity =1000
# Licensed to the Apache SoftwareFoundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additionalinformation
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version2.0 (the
# "License"); you may not usethis file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law oragreed to in writing,
# software distributed under the License isdistributed on an
# "AS IS" BASIS, WITHOUTWARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissionsand limitations
# under the License.
# The configuration file needs to definethe sources,
# the channels and the sinks.
# Sources, channels and sinks are definedper agent,
# in this case called 'agent'
# For each one of the sources, the type isdefined
agent.sources.loggerSource.type = avro
agent.sources.loggerSource.bind = 0.0.0.0
agent.sources.loggerSource.port = 4141
# The channel can be defined as follows.
agent.sources.loggerSource.channels =memoryChannel
# Each sink's type must be defined
agent.sinks.loggerSink.type = hdfs agent.sinks.loggerSink.hdfs.path = <hdfs sink path>
agent.sinks.loggerSink.hdfs.filePrefix =csplog-
agent.sinks.loggerSink.hdfs.rollInterval=86400
agent.sinks.loggerSink.hdfs.rollSize = 0
agent.sinks.loggerSink.hdfs.rollCount = 0
agent.sinks.loggerSink.hdfs.fileType =DataStream
#Specify the channel the sink should use
agent.sinks.loggerSink.channel =memoryChannel
# Each channel's type is defined.
agent.channels.memoryChannel.type = memory
# Other config values specific to each typeof channel(sink or source)
# can be defined as well
# In this case, it specifies the capacityof the memory channel
agent.channels.memoryChannel.capacity =1000