You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Lee,
"Yeon Ok (이연옥)" <ye...@ebay.com> on 2013/10/31 09:50:18 UTC
A Question about '*.index' file
Hi, all.
I set a broker’s log directory to ‘/tmp/kafka-logs-1’,
and found that there are 00000000000000000000.index, 00000000000000000000.log in the directory ‘/tmp/kafka-logs-1/test-0/’.
Whenever the broker receives some messages, that messages are appended in the file “00000000000000000000.log”, however,
00000000000000000000.index file seems to have no-changes at all… is that correct?
What’s the cases that ‘*.index’ file get changed, or accessed?
Could I let the brokers run without any ‘*.index’ files?
Re: A Question about '*.index' file
Posted by 김정민 <mi...@gmail.com>.
카푸카 어디에 쓰나요?
나의 iPhone에서 보냄
2013. 10. 31. 오후 5:50 Lee, Yeon Ok (이연옥) <ye...@ebay.com> 작성:
> Hi, all.
>
> I set a broker’s log directory to ‘/tmp/kafka-logs-1’,
> and found that there are 00000000000000000000.index, 00000000000000000000.log in the directory ‘/tmp/kafka-logs-1/test-0/’.
>
> Whenever the broker receives some messages, that messages are appended in the file “00000000000000000000.log”, however,
> 00000000000000000000.index file seems to have no-changes at all… is that correct?
>
> What’s the cases that ‘*.index’ file get changed, or accessed?
> Could I let the brokers run without any ‘*.index’ files?
>
>
Re: A Question about '*.index' file
Posted by Neha Narkhede <ne...@gmail.com>.
The index file gets a new entry every index.interval.bytes. The index maps
logical to physical data and is used to look up messages by logical offset.
Thanks,
Neha
On Oct 31, 2013 1:50 AM, "Lee, Yeon Ok (이연옥)" <ye...@ebay.com> wrote:
> Hi, all.
>
> I set a broker’s log directory to ‘/tmp/kafka-logs-1’,
> and found that there are 00000000000000000000.index,
> 00000000000000000000.log in the directory ‘/tmp/kafka-logs-1/test-0/’.
>
> Whenever the broker receives some messages, that messages are appended in
> the file “00000000000000000000.log”, however,
> 00000000000000000000.index file seems to have no-changes at all… is that
> correct?
>
> What’s the cases that ‘*.index’ file get changed, or accessed?
> Could I let the brokers run without any ‘*.index’ files?
>
>
>