I'm not aware of connecting to Hadoop, but i integrated with SharePoint, all you need is the client id and client secret and some headers to get an authentication token (OAuth token) which will help you in consuming other services of Sharepoint
to get oauth token:
https://accounts.accesscontrol.windows.net/{{realm}}/tokens/OAuth/2
and headers have to send in encoded format
https://anexinet.com/blog/getting-an-access-token-for-sharepoint-online/
Might this will help you… :)
Im not an expert on hadoop, but i read you can access it through java: https://stackoverflow.com/questions/38624298/to-connect-to-hadoop-using-java
So that would be an opening.