Preheat the oven to 350F.
Place the pineapple in a bowl and add the coconut, sugar, salt, ground cinnamon. Set aside.
For the topping: Combine the flour, sugar, brown sugar, oatmeal and butter in a bowl. Mix well until well combined.
Pour the pineapple mixture in the baking dish. Sprinkle the topping evenly over the pineapple.
Bake until the topping is crisp and golden brown and the pear filling bubbles slowly, about 50 minutes. Serve warm.