convert live hls stream into rtmp stream
Because -rf is a output option, I guess, you should put -re ahead like that:
ffmpeg -re -i http://example.com/test.m3u8 -acodec copy -vcodec copy rtmp://example.com/app/stream