Peel pineapples and remove eyes to yield about 1.3 kg. Rinse and drain thoroughly. Chop and blend woody cores till totally smooth, and juicy part till roughly minced.
2 pineapples
Put pineapples, star anise, and cinnamon stick in a non-reactive wok. Cook over maximum heat till almost dry, 10-15 minutes. Add sugar and stir till melted. Continue cooking, stirring from time to time, till light brown and starting to thicken, about 20 minutes.
1 star anise, 5 cm cinnamon stick, 500 g sugar
Lower heat from maximum to high. Cook till medium brown and just thick enough to hold its shape, another 10 minutes or so, stirring constantly to prevent burning. Turn off heat.
Refrigerate 1 tbsp filling till slightly cool to touch. Press to check consistency. If too soft, cook another few more minutes. If too hard or too sticky, add 1-2 tbsp water and mix evenly. You should have about 850 g.
When filling is cool, roll into little balls weighing 9-10 g each. You should have 90 pieces. Leave pineapple balls in freezer till firm, 30 minutes or longer.