Before the Meiji Restoration Japan was a very isolated and tribal nation, how did from this they could abruptly come in contact with one Western military general and suddenly rapidity industrialize and adopt Western proudction methods and ideas and then prosper massively?
Edo Japan was neither very isolated nor a tribal nation. Edo Japan had a well-functioning government with a relatively large bureaucracy governing by laws.
Please see our updated FAQs on some of the factors for why Japan succeeded.