You have to download the mental ray package separately from Autodesk Maya Website and install it. Then it should work as usual.