Issue Details (XML | Word | Printable)

Key: SFOS-1133
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Steve Loughran
Reporter: Steve Loughran
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
SmartFrog

Add functions and components to work out the local hostname

Created: 27/Feb/09 03:39 PM (GMT)   Updated: 03/Mar/09 05:52 PM (GMT)
Component/s: .sfCore
Affects Version/s: 3.17.010
Fix Version/s: 3.17.010

Time Tracking:
Not Specified

Compatibility: new feature


 Description  « Hide
For hadoop deployments I need

-the full hostname of a machine; IP addresses are not adequate as HDFS does a reverse lookup to determine its name
-maybe: the ability to take a hostname and return the address, dnslookup("something") => IP address
-a function or other way to get the hostname of a local machine: LOCALHOST or localhost();
-a function to get the IPAddr of the local host localhostaddress()
-a function to go from an IP Address (inc 127.0.0.1) to a hostname, maybe fully qualified

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Steve Loughran added a comment - 03/Mar/09 02:47 PM (GMT)
functions are misbehaving, but there is also the big issue of do you know exactly where things will deploy.

I am therefore adding a component that will work out its own hostname and add that as an attribute, along with its address. Wherever you deploy that component, you get its values.

Steve Loughran added a comment - 03/Mar/09 02:47 PM (GMT)
and make that component workflow-ready

Steve Loughran added a comment - 03/Mar/09 05:52 PM (GMT)
done. the component works well