Thanks for your reply!.
When i changed the authorization manager in hiverserver2-site.xml from org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizerFactory to
<span style=”font-family: ‘Helvetica Neue’, Helvetica, Arial, ‘Open Sans’, ‘Lucida Grande’, sans-serif; font-size: 14.4px; line-height: 21.6px;”>org.apache.hadoop.hive.ql.security.authorization.StorageBasedAuthorizationProvider,I started getting exception even for query for which has permissions configured in Ranger.</span>
Error : Error while compiling statement: FAILED: HiveException java.lang.reflect.UndeclaredThrowableException (state=42000,code=40000)